You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/05/07 14:19:34 UTC

[incubator-nuttx] branch master updated: tools/pic32: update pic32 scripts to fix jobserver unavailable warning

This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c9f912  tools/pic32: update pic32 scripts to fix jobserver unavailable warning
2c9f912 is described below

commit 2c9f91205f3e85aa1366543a0fdb925455aeb620
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Thu May 7 20:26:05 2020 +0800

    tools/pic32: update pic32 scripts to fix jobserver unavailable warning
    
    Always build mkpichex to make sure it newest, also correct target name.
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 tools/pic32/Config.mk     | 6 ++----
 tools/pic32/Makefile.host | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/tools/pic32/Config.mk b/tools/pic32/Config.mk
index a16519b..facfac8 100644
--- a/tools/pic32/Config.mk
+++ b/tools/pic32/Config.mk
@@ -28,11 +28,9 @@
 ifeq ($(CONFIG_INTELHEX_BINARY),y)
 
 define POSTBUILD
-	$(Q)echo "Converting the hex file"; 
+	$(Q)echo "Converting the hex file"
 
-	$(Q) if [ ! -f "tools/pic32/mkpichex" ] ; then \
-		$(MAKE) -C $(TOPDIR)$(DELIM)tools$(DELIM)pic32 -f Makefile.host; \
-	fi
+	+$(Q) $(MAKE) -C $(TOPDIR)$(DELIM)tools$(DELIM)pic32 -f Makefile.host
 	tools$(DELIM)pic32$(DELIM)mkpichex$(HOSTEXEEXT) $(PWD)
 	$(Q)([ $$? -eq 0 ] && echo "Done.")
 endef
diff --git a/tools/pic32/Makefile.host b/tools/pic32/Makefile.host
index 5780f8c..718e1e5 100644
--- a/tools/pic32/Makefile.host
+++ b/tools/pic32/Makefile.host
@@ -28,7 +28,7 @@ CFLAGS = -O2 -Wall -I.
 
 # mkpichex - Convert virtual addresses in nuttx.hex to physical addresses
 
-mkconfig: mkpichex.c mkpichex.c
+mkpichex: mkpichex.c
 	@gcc $(CFLAGS) -o mkpichex mkpichex.c
 
 clean: