From 2c9f91205f3e85aa1366543a0fdb925455aeb620 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Thu, 7 May 2020 20:26:05 +0800 Subject: [PATCH] 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 --- 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 a16519b7ab5..facfac8daad 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 5780f8c1ca9..718e1e53acb 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: