summaryrefslogtreecommitdiff
path: root/nuttx/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-17 17:53:25 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-17 17:53:25 +0000
commit8efbdd8cad0fb23b7d985495b749b94ef1fffb0e (patch)
tree44f5d6bc79d45abdc8413d70eb9c573743d3ceb2 /nuttx/Makefile
parentef079b42cab313dcc8cc383aebbe60299fb1c1f3 (diff)
downloadpx4-nuttx-8efbdd8cad0fb23b7d985495b749b94ef1fffb0e.tar.gz
px4-nuttx-8efbdd8cad0fb23b7d985495b749b94ef1fffb0e.tar.bz2
px4-nuttx-8efbdd8cad0fb23b7d985495b749b94ef1fffb0e.zip
Fix race conditions probably caused by multiple, asynchronous make jobs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2368 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r--nuttx/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile
index eba340467..bf2859aca 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -71,6 +71,7 @@ ADDON_DIRS := $(PCODE_DIR) $(NX_DIR)
NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE) $(ADDON_DIRS)
FSDIRS = fs drivers binfmt
+CONTEXTDIRS =
ifeq ($(CONFIG_NET),y)
NONFSDIRS += net netutils
@@ -78,6 +79,7 @@ endif
ifeq ($(CONFIG_NX),y)
NONFSDIRS += graphics
+CONTEXTDIRS += graphics
endif
# CLEANDIRS are the directories that will clean in. These are
@@ -189,6 +191,9 @@ endif
dirlinks: include/arch include/arch/board include/arch/chip $(ARCH_SRC)/board $(ARCH_SRC)/chip
context: check_context include/nuttx/config.h dirlinks
+ @for dir in $(CONTEXTDIRS) ; do \
+ $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" context ; \
+ done
clean_context:
@rm -f include/nuttx/config.h