File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1010TOOLCHAIN = mwdt
1111TCF_FILE ?= ../../hw/em9d.tcf
1212
13+ # Make rules for code generation are default disabled to avoid
14+ # dependency to python when re-generation is not needed
15+ GEN_RULES ?= OFF
16+
1317# Directories and files
1418SRC_ROOT = ../src
1519SRC_DIRS = ../src/helpers/src \
7882 -@$(RM ) $(call fix_platform_path,$(LIBRARY_DIR ) /$(OUT_NAME ) .a)
7983
8084
85+ ifeq ($(GEN_RULES ) ,ON)
86+
8187$(filter $(CONVOLUTION_SRC_FOLDER ) /mli_krn_conv2d_chw_% , $(GEN_FILES ) ) : $(CONVOLUTION_SRC_FOLDER ) /mli_krn_conv2d_chw_% .cc : mli_krn_conv2d_gen.py mli_krn_conv2d_func_body.txt filetemplate.txt
8288 @echo [generate] $@
8389 cd $(GEN_DIR ) && python $< $*
@@ -98,5 +104,6 @@ $(GEN_FILES_HEADERS): $(GEN_HEADER_FOLDER)/%_spec_api.h : %_gen.py header_filete
98104 @echo [generate] $@
99105 cd $(GEN_DIR ) && python $< header
100106
101-
102107gen : $(GEN_FILES ) $(GEN_FILES_HEADERS )
108+
109+ endif
You can’t perform that action at this time.
0 commit comments