1CPRE := @ 2ifeq ($(V),1) 3CPRE := 4VERB := --verbose 5endif 6 7MK_GENERATED_IMGS_PATH:=generated 8PRODUCT_BIN:=product 9 10.PHONY:startup 11startup: all 12 13all: 14 @echo "Build Solution by $(BOARD) " 15 $(CPRE) scons $(VERB) --board=$(BOARD) $(MULTITHREADS) $(MAKEFLAGS) 16 @echo tflite micro speech build Done 17 18 @echo [INFO] Create bin files 19# $(CPRE) $(PRODUCT_BIN) image $(MK_GENERATED_IMGS_PATH)/images.zip -i $(MK_GENERATED_IMGS_PATH)/data -l -p 20# $(CPRE) $(PRODUCT_BIN) image $(MK_GENERATED_IMGS_PATH)/images.zip -e $(MK_GENERATED_IMGS_PATH) -x 21 22.PHONY:flash 23flash: 24 $(CPRE) $(PRODUCT_BIN) flash $(MK_GENERATED_IMGS_PATH)/images.zip -w prim 25 26.PHONY:flashall 27flashall: 28 $(CPRE) $(PRODUCT_BIN) flash $(MK_GENERATED_IMGS_PATH)/images.zip -a 29 30sdk: 31 $(CPRE) haas sdk 32 33.PHONY:clean 34clean: 35 $(CPRE) scons -c --board=$(BOARD) 36 $(CPRE) find . -name "*.[od]" -delete 37 $(CPRE) rm yoc_sdk yoc.* generated out -rf 38