diff options
author | 남궁석/On-Device Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com> | 2019-03-05 15:24:19 +0900 |
---|---|---|
committer | 이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com> | 2019-03-05 15:24:19 +0900 |
commit | 03e66c17a2b8bc0e1f05aad73995ee70461aefb0 (patch) | |
tree | 8abd9231e2c8eb830d3ffea920c9a357bda80b11 /docs | |
parent | e64ba78bb5c0ec5e4c310529c1dae4ece4a99cb4 (diff) | |
download | nnfw-03e66c17a2b8bc0e1f05aad73995ee70461aefb0.tar.gz nnfw-03e66c17a2b8bc0e1f05aad73995ee70461aefb0.tar.bz2 nnfw-03e66c17a2b8bc0e1f05aad73995ee70461aefb0.zip |
Update build and test in readme file (#4550)
* Update build and test in readme file
There are some modifications after build and test processes are updated.
This commit will add those information.
Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* remove some tag and sentence
Diffstat (limited to 'docs')
-rw-r--r-- | docs/howto/CrossBuildForArm.md | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/docs/howto/CrossBuildForArm.md b/docs/howto/CrossBuildForArm.md index e307596d0..67d1eca3d 100644 --- a/docs/howto/CrossBuildForArm.md +++ b/docs/howto/CrossBuildForArm.md @@ -23,7 +23,7 @@ To see the options, RootFS will be prepared at `tools/cross/rootfs/arm` folder. -## Prepare RootFS at alternative folder +### Prepare RootFS at alternative folder Use `ROOTFS_DIR` to a full path to prepare at alternative path. @@ -31,7 +31,7 @@ Use `ROOTFS_DIR` to a full path to prepare at alternative path. ROOTFS_DIR=/home/user/rootfs/arm-xenial sudo ./tools/cross/build_rootfs.sh arm ``` -## Using proxy +### Using proxy If you need to use proxy server while building the rootfs, use `--setproxy` option. @@ -49,7 +49,7 @@ for `http`, `https` and `ftp` protocol. We recommend you have g++ >= 6 installed on your system because NN generated tests require it. -On Ubuntu 16.04 or older, follow the next steps: +- On Ubuntu 16.04 or older, follow the next steps: ``` cd ~/your/path @@ -58,7 +58,7 @@ tar xvf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz echo 'PATH=~/your/path/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin:$PATH' >> ~/.bashrc ``` -On Ubuntu 18.04 LTS, you can install using `apt-get`. +- On Ubuntu 18.04 LTS, you can install using `apt-get`. Choose g++ version whatever you prefer: 6, 7 or 8. ``` @@ -78,30 +78,40 @@ Then, copy `libstdc++.so.6.0.24` into `/usr/lib/arm-linux-gnueabihf`, and update ## Build and install ARM Compute Library -``` -CROSS_BUILD=1 TARGET_ARCH=armv7l make acl -``` -Mostly you only need once of ACL build. This will build and install to `Product/(target_arch-os)/out/bin` folder. -- this is required for ARM on Ubuntu +Mostly you only need once of ACL build. -## Build nnfw +ACL will be automatically installed in `externals/acl` when you build nnfw without any changes. -Give `TARGET_ARCH` variable to set the target architecture +You can check ACL source information in `cmake/packages/ARMComputeSourceConfig.cmake` -``` -CROSS_BUILD=1 TARGET_ARCH=armv7l make all install -``` -- supports `armv7l` and `aarch64` for now +## Build nnfw + +Give `TARGET_ARCH` variable to set the target architecture. If you used `ROOTFS_DIR` to prepare in alternative folder, you should also give this to makefile. ``` +CROSS_BUILD=1 TARGET_ARCH=armv7l make all install + +# If ROOTFS_DIR is in alternative folder ROOTFS_DIR=ROOTFS_ARM=/path/to/your/rootfs/arm \ CROSS_BUILD=1 TARGET_ARCH=armv7l make all install ``` -## Run test +If you want to build neurun, you should switch on `BUILD_NEURUN` option in `cmake/CfgOptionFlags.cmake` +``` +option(BUILD_NEURUN "Build neurun" ON) +``` +## Run test +- PureACL ``` ./tests/scripts/test_driver.sh --artifactpath=. ``` + +- neurun +``` + ./tests/scripts/test_driver.sh --artifactpath=. \ + --ldlibrarypath=Product/out/lib/neurun:Product/out/lib \ + --frameworktest_list_file=tests/scripts/neurun_frameworktest_list.armv7l.acl_cl.txt +``` |