summaryrefslogtreecommitdiff
path: root/nuttx/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-16 21:45:41 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-09-16 21:45:41 +0000
commit7fd98a9d90f01172ce456487219ce9e10814fafc (patch)
treeaf336946c13d09f6f7ddff2d1a40ba13511b2a04 /nuttx/Makefile
parent48de33cb61458f3f546fd0a68a39b23c1a040a14 (diff)
downloadpx4-nuttx-7fd98a9d90f01172ce456487219ce9e10814fafc.tar.gz
px4-nuttx-7fd98a9d90f01172ce456487219ce9e10814fafc.tar.bz2
px4-nuttx-7fd98a9d90f01172ce456487219ce9e10814fafc.zip
Add support for Intel Hex format output
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@922 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r--nuttx/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile
index 2d5d2aba5..b31afe382 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -201,6 +201,18 @@ examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT): context
$(BIN): context depend $(LINKLIBS)
@$(MAKE) -C $(ARCH_SRC) TOPDIR="$(TOPDIR)" LINKLIBS="$(LINKLIBS)" $(BIN)
+ @if [ -w /tftpboot ] ; then \
+ cp -f $(TOPDIR)/$@ /tftpboot/$@.${CONFIG_ARCH}; \
+ fi
+ifeq ($(CONFIG_RRLOAD_BINARY),y)
+ @$(TOPDIR)/tools/mkimage.sh --Prefix $(CROSSDEV) $(TOPDIR)/$@ $(TOPDIR)/$@.rr
+ @if [ -w /tftpboot ] ; then \
+ cp -f $(TOPDIR)/$@.rr /tftpboot/$@.rr.${CONFIG_ARCH}; \
+ fi
+endif
+ifeq ($(CONFIG_INTELHEX_BINARY),y)
+ @$(OBJCOPY) -O ihex $(TOPDIR)/$@ $(TOPDIR)/$@.ihx
+endif
depend:
@for dir in $(MAKEDIRS) ; do \