使用多线程编译,优化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

@@ -51,10 +51,7 @@ include $(CURDIR)/build/makefile.cfg
TOPDIR = $(CURDIR)
export TOPDIR
endif
TARGET:: $(OUTPUT_FULL_NAME) USR_CMD
# usr_cmd
USR_CMD::
TARGET:: $(OUTPUT_FULL_NAME)
@echo "const char mailbox_core1[] = {" > mailbox_core1.h
@./bin2hex_frame $(OUTPUT_FULL_NAME:.out=.bin) tmp.txt
@cat tmp.txt >> mailbox_core1.h

View File

@@ -52,10 +52,7 @@ TOPDIR = $(CURDIR)
export TOPDIR
endif
TARGET:: $(OUTPUT_FULL_NAME) USR_CMD
# usr_cmd
USR_CMD::
TARGET:: $(OUTPUT_FULL_NAME)
@echo "const char mailbox_core2[] = {" > mailbox_core2.h
@./bin2hex_frame $(OUTPUT_FULL_NAME:.out=.bin) tmp.txt
@cat tmp.txt >> mailbox_core2.h

View File

@@ -52,9 +52,7 @@ TOPDIR = $(CURDIR)
export TOPDIR
endif
TARGET:: $(OUTPUT_FULL_NAME) USR_CMD
# usr_cmd
USR_CMD::
TARGET:: $(OUTPUT_FULL_NAME)
@echo "const char plc_core1[] = {" > plc_core1.h
@./bin2hex_frame $(OUTPUT_FULL_NAME:.out=.bin) tmp.txt
@cat tmp.txt >> plc_core1.h

View File

@@ -51,10 +51,7 @@ include $(CURDIR)/build/makefile.cfg
TOPDIR = $(CURDIR)
export TOPDIR
endif
TARGET:: $(OUTPUT_FULL_NAME) USR_CMD
# usr_cmd
USR_CMD::
TARGET:: $(OUTPUT_FULL_NAME)
@echo "const char wdg_core1[] = {" > wdg_core1.h
@./bin2hex_frame $(OUTPUT_FULL_NAME:.out=.bin) tmp.txt
@cat tmp.txt >> wdg_core1.h

View File

@@ -52,10 +52,7 @@ TOPDIR = $(CURDIR)
export TOPDIR
endif
TARGET:: $(OUTPUT_FULL_NAME) USR_CMD
# usr_cmd
USR_CMD::
TARGET:: $(OUTPUT_FULL_NAME)
@echo "const char wdg_core2[] = {" > wdg_core2.h
@./bin2hex_frame $(OUTPUT_FULL_NAME:.out=.bin) tmp.txt
@cat tmp.txt >> wdg_core2.h

View File

@@ -50,7 +50,13 @@ ADD_LIB += os driver common rf_mac
#####################################################
.PHONY: TARGET
TARGET: .output/plc/lib/kl3_core1.out USR_CMD
TARGET: .output/plc/lib/kl3_core1.out
@echo "const char plc_core1[] = {" > plc_core1.h
@./bin2hex_frame ../kl3_core1/.output/plc/lib/kl3_core1.bin tmp.txt
@cat tmp.txt >> plc_core1.h
@echo "};" >> plc_core1.h
@mv plc_core1.h ../kl3_core0
@rm -rf tmp.txt
ifdef TOPDIR
include $(TOPDIR)/build/makefile.cfg
@@ -60,14 +66,6 @@ TOPDIR = $(CURDIR)
export TOPDIR
endif
# usr_cmd
USR_CMD::
@echo "const char plc_core1[] = {" > plc_core1.h
@./bin2hex_frame ../kl3_core1/.output/plc/lib/kl3_core1.bin tmp.txt
@cat tmp.txt >> plc_core1.h
@echo "};" >> plc_core1.h
@mv plc_core1.h ../kl3_core0
@rm -rf tmp.txt
dump:
$(OBJDUMP) -D -S -l $(OUTPUT_FULL_NAME) > $(OUTPUT_FULL_NAME).dump