From 06c9f9359ef7949cd36eeb9b5c6ba53cd5abbfe6 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Wed, 18 Mar 2020 20:30:50 +0800 Subject: [PATCH] Makefile: remove context dependency to avoid apps context build twice In nuttx pass1dep and pass2dep builds, context firstly would be built once. It then call 'make -C apps depend' which would trigger the context built twice. There is race condition between symtab.c generated by mksymtab.sh in second time and compiling symtab.c in parallel build. So remove context dependency for apps depend to make sure context build only one time for apps. Parallel build break logs as below: /home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/apps/examples/elf/elf_main.c:357: undefined reference to `g_elf_nexports' riscv64-unknown-elf-ld: /home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/apps/examples/elf/elf_main.c:357: undefined reference to `g_elf_exports' make[1]: *** [nuttx] Error 1 make: *** [pass2] Error 2 Change-Id: I2872f7036e7ec86615efc5ebd7c46cee51dc1094 Signed-off-by: liuhaitao --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6744ef7c4..5956c6450 100644 --- a/Makefile +++ b/Makefile @@ -167,7 +167,7 @@ endif .depdirs: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_depend) -.depend: context Makefile .depdirs +.depend: Makefile .depdirs $(Q) touch $@ depend: .depend