使用多线程编译,优化praper_vscode.py

This commit is contained in:
2024-09-28 19:35:52 +08:00
parent a1a8f76b8c
commit f50a2a3751
12 changed files with 91 additions and 90 deletions

View File

@@ -87,7 +87,14 @@ extra_work = echo handle bb_cpu..;\
ifeq ($(bbcpu_enable), 1)
.PHONY: TARGET
TARGET: .output/plc/lib/bb_cpu.out USR_CMD
TARGET: .output/plc/lib/bb_cpu.out
@echo "const char plc_core1[] = {" > plc_core1.h
@chmod 777 $(TOPDIR)/tools/bin_tool/bin2hex_frame
@$(TOPDIR)/tools/bin_tool/bin2hex_frame $(OUTPUT_DIR)/$(OUTPUT_NAME).bin tmp.txt
@cat tmp.txt >> plc_core1.h
@echo "};" >> plc_core1.h
@mv plc_core1.h $(TOPDIR)/dtest/dtest3/mac_phy/double_cpu/kl3_core0
@rm -rf tmp.txt
endif
ifdef TOPDIR
@@ -98,15 +105,6 @@ TOPDIR = $(CURDIR)
export TOPDIR
endif
# usr_cmd
USR_CMD::
@echo "const char plc_core1[] = {" > plc_core1.h
@chmod 777 $(TOPDIR)/tools/bin_tool/bin2hex_frame
@$(TOPDIR)/tools/bin_tool/bin2hex_frame $(OUTPUT_DIR)/$(OUTPUT_NAME).bin tmp.txt
@cat tmp.txt >> plc_core1.h
@echo "};" >> plc_core1.h
@mv plc_core1.h $(TOPDIR)/dtest/dtest3/mac_phy/double_cpu/kl3_core0
@rm -rf tmp.txt
dump:
$(OBJDUMP) -D -S -l $(OUTPUT_FULL_NAME) > $(OUTPUT_FULL_NAME).dump