From c60a23b3131097ba35c94692618be243b588f134 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Mon, 23 Jul 2018 12:44:31 +0000 Subject: [PATCH] Merged in masayuki2009/nuttx.nuttx/fix_syscall_build (pull request #691) syscall: Fix parallel build in making context. This patch avoids running $(MKSYSCALL) and .context in parallel and ensures that tools/mksyscall is built before it is actually used. Signed-off-by: Masayuki Ishikawa Approved-by: GregoryN --- syscall/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/syscall/Makefile b/syscall/Makefile index b6de9b836a..c1d5b1b001 100644 --- a/syscall/Makefile +++ b/syscall/Makefile @@ -86,15 +86,13 @@ $(BIN2): $(STUB_OBJS) depend: .depend -$(MKSYSCALL): - $(Q) $(MAKE) -C $(TOPDIR)$(DELIM)tools -f Makefile.host mksyscall - .context: syscall.csv + $(Q) $(MAKE) -C $(TOPDIR)$(DELIM)tools -f Makefile.host mksyscall $(Q) (cd proxies; $(MKSYSCALL) -p $(CSVFILE);) $(Q) (cd stubs; $(MKSYSCALL) -s $(CSVFILE);) $(Q) touch $@ -context: $(MKSYSCALL) .context +context: .context clean: $(call DELFILE, $(BIN1))