# Coverage
/gcov
/coverage
+
+# Makefile
+/Makefile
$(WORKDIR):
mkdir -p $@
-$(BUILD_ROOT): $(WORKDIR)
- make configure_internal
+$(BUILD_ROOT): $(WORKDIR) configure_internal
-$(TIMESTAMP_CONFIGURE):
- make configure_internal
+$(TIMESTAMP_CONFIGURE): configure_internal
-$(TIMESTAMP_BUILD): $(TIMESTAMP_CONFIGURE)
- make build_internal
+$(TIMESTAMP_BUILD): $(TIMESTAMP_CONFIGURE) build_internal
-$(TIMESTAMP_INSTALL): $(TIMESTAMP_BUILD)
- make install_internal
+$(TIMESTAMP_INSTALL): $(TIMESTAMP_BUILD) install_internal
%build
%ifarch arm armv7l aarch64
-%{build_options} make %{?jobs:-j%jobs}
+%{build_options} make -f Makefile.template %{?jobs:-j%jobs} all
%endif
%install
%ifarch arm armv7l aarch64
-%{build_options} make install
+%{build_options} make -f Makefile.template install
%ifarch aarch64
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{test_install_prefix}/tools
cp -rf ./tests/scripts %{buildroot}%{test_install_prefix}/tools
%else
-%{build_options} make build_coverage_suite
+%{build_options} make -f Makefile.template build_coverage_suite
mkdir -p %{buildroot}%{test_install_prefix}
cp -rf Product/out/coverage-suite.tar.gz %{buildroot}%{test_install_prefix}/.
tar -zxf %{buildroot}%{test_install_prefix}/coverage-suite.tar.gz -C %{buildroot}%{test_install_prefix}
# TODO use command instead of makefile
CMD="export OPTIONS='-DBUILD_NEURUN=OFF -DBUILD_PURE_ARM_COMPUTE=ON -DBUILD_TFLITE_LOADER=OFF' && \
- make && \
- make install && \
- make build_test_suite"
+ make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "${CMD}"
popd > /dev/null
# TODO use command instead of makefile
CMD="export OPTIONS='-DBUILD_PURE_ARM_COMPUTE=ON -DBUILD_NEURUN=OFF -DBUILD_TFLITE_BENCHMARK_MODEL=ON -DBUILD_TFLITE_LOADER=OFF' && \
- make && \
- make install && \
- make build_test_suite"
+ make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "$CMD"
popd > /dev/null
pushd $ROOT_PATH > /dev/null
# TODO use command instead of makefile
-CMD="make && \
- make install && \
- make build_test_suite"
+CMD="make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "$CMD"
popd > /dev/null
pushd $ROOT_PATH > /dev/null
# TODO use command instead of makefile
-CMD="make && \
- make install && \
- make build_test_suite"
+CMD="make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "$CMD"
popd > /dev/null
# TODO use command instead of makefile
CMD="export OPTIONS='-DBUILD_NEURUN=OFF -DBUILD_PURE_ARM_COMPUTE=ON -DBUILD_TFLITE_LOADER=OFF' && \
- make && \
- make install && \
- make build_test_suite"
+ make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "${CMD}"
popd > /dev/null
pushd $ROOT_PATH > /dev/null
# TODO use command instead of makefile
-CMD="make && \
- make install && \
- make build_coverage_suite"
+CMD="make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_coverage_suite"
source nnfw docker-run-user bash -c "$CMD"
popd > /dev/null
pushd $ROOT_PATH > /dev/null
-CMD="make && \
- make install && \
- make build_test_suite"
+CMD="make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "$CMD"
pushd $ROOT_PATH > /dev/null
-CMD="make && \
- make install && \
- make build_test_suite"
+CMD="make -f Makefile.template && \
+ make -f Makefile.template install && \
+ make -f Makefile.template build_test_suite"
source nnfw docker-run-user bash -c "$CMD"
popd > /dev/null