Fix build command script (#3299)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 23 Oct 2018 08:32:49 +0000 (17:32 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 23 Oct 2018 08:32:49 +0000 (17:32 +0900)
Fix build command script
- configure: Add home, binary home option
- build-acl: Fix to build-acl before configure

By this, we can build
"[env-set] ./run build-acl & [env-set] ./run configure & ./run build & ./run install"

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
scripts/command/build-acl
scripts/command/configure

index 440ad2a..2e99cac 100644 (file)
@@ -67,7 +67,11 @@ else
 fi
 popd
 
-mkdir -vp ${INSTALL_ALIAS}/lib
-cp -v ${ACL_FOLDER_BUILD}/libarm_compute_core.so ${INSTALL_ALIAS}/lib/.
-cp -v ${ACL_FOLDER_BUILD}/libarm_compute_graph.so ${INSTALL_ALIAS}/lib/.
-cp -v ${ACL_FOLDER_BUILD}/libarm_compute.so ${INSTALL_ALIAS}/lib/.
+WORK_FOLDER=${TARGET_ARCH_LC}-${TARGET_OS}.${BUILD_TYPE_LC}
+WORK_PATH=${NNFW_PROJECT_PATH}/${WORKSPACE_RPATH}/${WORK_FOLDER}
+INSTALL_PATH=${NNFW_INSTALL_PATH:-${WORK_PATH}/out}
+
+mkdir -vp ${INSTALL_PATH}/lib
+cp -v ${ACL_FOLDER_BUILD}/libarm_compute_core.so ${INSTALL_PATH}/lib/.
+cp -v ${ACL_FOLDER_BUILD}/libarm_compute_graph.so ${INSTALL_PATH}/lib/.
+cp -v ${ACL_FOLDER_BUILD}/libarm_compute.so ${INSTALL_PATH}/lib/.
index 4e4ae8c..2ff3c38 100644 (file)
@@ -74,6 +74,7 @@ ln -s ${INSTALL_PATH} ${INSTALL_ALIAS}
 cd "${BUILD_PATH}"
 
 cmake \
+  -B${BUILD_PATH} -H${NNFW_PROJECT_PATH} \
   -DCMAKE_INSTALL_PREFIX=${INSTALL_PATH} \
   -DCMAKE_BUILD_TYPE=${BUILD_TYPE_LC} -DTARGET_ARCH=${TARGET_ARCH_LC} \
   -DHOST_OS=${HOST_OS} \