Separate ACL build type output folder (#803)
author박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Thu, 19 Apr 2018 08:33:51 +0000 (17:33 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 19 Apr 2018 08:33:51 +0000 (17:33 +0900)
This will use ACL build option `build_dir` to separate build type (debug,release) to have its own folder

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Makefile

index 067f8d2..bfa8268 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,7 +68,11 @@ TIMESTAMP_INSTALL=$(WORKDIR)/INSTALL
 ACL_FOLDER=externals/acl
 ACL_COMMAND=scons Werror=1 neon=1 opencl=1 os=linux arch=armv7a examples=0 embed_kernels=1
 ifeq ($(BUILD_TYPE_LC),debug)
-       ACL_COMMAND+=debug=1 asserts=1
+       ACL_COMMAND+=debug=1 asserts=1 build_dir=debug
+       ACL_FOLDER_BUILD=$(ACL_FOLDER)/build/debug
+else
+       ACL_COMMAND+=build_dir=release
+       ACL_FOLDER_BUILD=$(ACL_FOLDER)/build/release
 endif
 
 all: build
@@ -124,9 +128,9 @@ internal_acl_build:
 
 internal_acl_install:
        @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/.
+       @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/.
 
 external_acl:
 ifneq ($(EXT_ACL_FOLDER),"")