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 <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-05-07 20:26:05 +08:00 committed by Alan Carvalho de Assis
parent d07fde06ae
commit 2c9f91205f
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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: