1.modify makefile
# Set to 1 to enable hot/cold linking
USE_PACKAGE:=0
make clean
make all -j
create static_lib.py
and input:
path = ["firmware/ncrapi.a"] # ncrapi can be replaced by any name you want to command.
path += glob.glob('bin/ncrapi/*/*.o') #Modify according to your actual compilation path
command = "arm-none-eabi-ar -rc"
for index in path:
command += " "+index
os.system(command)
run python ./static_lib.py
delete src file.such as ./src/ncrapi
In this way, the compilation speed will be much faster
My English is poor. I hope someone can help me to explain it