Fix: ensure archive files do not carry object files from prior builds

This is the corresponding change to the one on main NuttX repo. In this
case this involves splitting the build of libapps.a into: a) building
all applications (which is safely parallelizable), b) adding each
application's object files to the archive in turns (serial by nature).

This removes the need for the flock used to protect the parallel build.
This commit is contained in:
Matias N 2020-09-12 00:36:23 -03:00 committed by Xiang Xiao
parent 52b28ed484
commit 18137c0fec
5 changed files with 19 additions and 17 deletions

View file

@ -39,7 +39,6 @@ include $(APPDIR)/Make.defs
SUBDIRS := $(dir $(wildcard *$(DELIM)Makefile))
CONFIGSUBDIRS := $(filter-out $(dir $(wildcard *$(DELIM)Kconfig)),$(SUBDIRS))
CLEANSUBDIRS := $(dir $(wildcard *$(DELIM).built))
CLEANSUBDIRS += $(dir $(wildcard *$(DELIM).depend))
CLEANSUBDIRS += $(dir $(wildcard *$(DELIM).kconfig))
CLEANSUBDIRS := $(sort $(CLEANSUBDIRS))