Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <liuhaitao@xiaomi.com>
- Loading branch information