mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
tools/pic32: Make the post build process depend on INTELHEX_BINARY, as
it converts a hex file. Build the tool if it didn't exist.
This commit is contained in:
@@ -24,17 +24,17 @@
|
|||||||
|
|
||||||
# POSTBUILD -- Perform post build operations
|
# POSTBUILD -- Perform post build operations
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_INTELHEX_BINARY),y)
|
||||||
|
|
||||||
define POSTBUILD
|
define POSTBUILD
|
||||||
$(Q)echo "Converting the hex file";
|
$(Q)echo "Converting the hex file";
|
||||||
|
|
||||||
$(Q) if [ ! -f "tools/pic32/mkpichex" ] ; then \
|
$(Q) if [ ! -f "tools/pic32/mkpichex" ] ; then \
|
||||||
echo "mkpichex tool doesn't exist"; \
|
$(MAKE) -C $(TOPDIR)$(DELIM)tools$(DELIM)pic32 -f Makefile.host; \
|
||||||
echo "Please run the following command to build the tool"; \
|
|
||||||
echo "make -C tools$(DELIM)pic32 -f Makefile.host"; \
|
|
||||||
echo "then run make again."; \
|
|
||||||
else \
|
|
||||||
tools$(DELIM)pic32$(DELIM)mkpichex$(HOSTEXEEXT) $(PWD); \
|
|
||||||
([ $$? -eq 0 ] && echo "Done."); \
|
|
||||||
fi
|
fi
|
||||||
|
tools$(DELIM)pic32$(DELIM)mkpichex$(HOSTEXEEXT) $(PWD)
|
||||||
|
$(Q)([ $$? -eq 0 ] && echo "Done.")
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user