Using python to build static library

1.modify makefile

# Set to 1 to enable hot/cold linking
make clean
make all -j

create 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

run python ./

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