diff options
author | 이성재/On-Device Lab(SR)/Principal Engineer/삼성전자 <sj925.lee@samsung.com> | 2019-06-12 10:52:35 +0900 |
---|---|---|
committer | 박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com> | 2019-06-12 10:52:35 +0900 |
commit | 3cd729e35f82d543b649d6a7444d77e7380e422c (patch) | |
tree | df5dd54e187eed254c734e562a54bc22b2c13e1e /docs | |
parent | c05cd4297c2ddc2624abe7eb73f0bd28e1cf3bfd (diff) | |
download | nnfw-3cd729e35f82d543b649d6a7444d77e7380e422c.tar.gz nnfw-3cd729e35f82d543b649d6a7444d77e7380e422c.tar.bz2 nnfw-3cd729e35f82d543b649d6a7444d77e7380e422c.zip |
Do cross build automatically when ROOTFS_DIR is present. (#5380)
* Do cross build automatically when ROOTFS_DIR is present.
* In Makefile, set CROSS_BUILD flag automatically when ROOTFS_DIR is given and exist.
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
* Improve the use case scenario and document.
* condition check was supplemented.
* update related document (This time, only arm related parts.)
Signed-off-by: Sung-Jae Lee <sj925.lee@samsung.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/howto/CrossBuildForArm.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/howto/CrossBuildForArm.md b/docs/howto/CrossBuildForArm.md index 92e51ba86..110dde861 100644 --- a/docs/howto/CrossBuildForArm.md +++ b/docs/howto/CrossBuildForArm.md @@ -98,6 +98,18 @@ ROOTFS_DIR=/path/to/your/rootfs/arm \ CROSS_BUILD=1 TARGET_ARCH=armv7l make all install ``` +You can also omit the `CROSS_BUILD=1` option if you explicitly pass `ROOTFS_DIR`. In that case, if +the `TARGET_ARCH` are differs from the hostarchitecture, the make script automatically applies +`CROSS_BUILD=1`. So, if you set `ROOTFS_DIR` as an environment variable, you can simply perform +normal build and cross build as follows. + +``` +export ROOTFS_DIR = xxx +... +make all install # do normal build +TARGET_ARCH = armv7l make all install # do cross build +``` + If you want to build neurun, you should switch on `BUILD_NEURUN` option in `cmake/CfgOptionFlags.cmake` ``` option(BUILD_NEURUN "Build neurun" ON) |