Use nnfw command in Makefile (#4746)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 15 Mar 2019 04:21:54 +0000 (13:21 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Fri, 15 Mar 2019 04:21:54 +0000 (13:21 +0900)
This commit updates Makefile to access nnfw internal through top-level
nnfw command (instead of using cmake directly).

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
Makefile

index fa32463..978cb01 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -120,9 +120,7 @@ tflite: tflite_build_internal
 ### Command (internal)
 ###
 configure_internal:
-       mkdir -p $(BUILD_ROOT)
-       cmake -B$(CURDIR)/$(BUILD_ROOT) -H$(CURDIR) \
-               -DCMAKE_INSTALL_PREFIX=$(INSTALL_PATH) \
+       NNFW_BUILD_DIR="$(CURDIR)/$(BUILD_ROOT)" NNFW_INSTALL_PREFIX=$(INSTALL_PATH) ./nnfw configure \
                -DCMAKE_BUILD_TYPE=$(BUILD_TYPE_LC) -DTARGET_ARCH=$(TARGET_ARCH_LC) \
                -DHOST_OS=$(HOST_OS) \
                -DTARGET_OS=$(TARGET_OS) \