summaryrefslogtreecommitdiff
path: root/nuttx/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-18 23:46:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-18 23:46:29 +0000
commit9de7429aec0c1f6bafcd03824f8b70cff7ee6461 (patch)
tree486ae069c9a068358f6ce8ab03248e400e1c30b7 /nuttx/Makefile
parent0c684df0cd3faf6f6f538454fcbc4cf0e980adc2 (diff)
downloadpx4-nuttx-9de7429aec0c1f6bafcd03824f8b70cff7ee6461.tar.gz
px4-nuttx-9de7429aec0c1f6bafcd03824f8b70cff7ee6461.tar.bz2
px4-nuttx-9de7429aec0c1f6bafcd03824f8b70cff7ee6461.zip
Preparing to test on the C5471
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@7 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Makefile')
-rw-r--r--nuttx/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile
index 34bb7ab89..48fab7bda 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -105,15 +105,21 @@ examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE).a: context
$(BIN): context depend $(OBJS) $(LIBS)
ifeq ($(CONFIG_ARCH),sim)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(LDLIBS)
- $(NM) $(BIN) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
+ @$(NM) $(BIN) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
else
$(LD) --entry=__start $(LDFLAGS) -o $@ $(OBJS) $(LIBS) $(LDLIBS)
- $(NM) $(BIN) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
+ @$(NM) $(BIN) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map
@export vflashstart=`$(OBJDUMP) --all-headers $(BIN) | grep _vflashstart | cut -d' ' -f1`; \
if [ ! -z "$$vflashstart" ]; then \
$(OBJCOPY) --adjust-section-vma=.vector=0x$$vflashstart $(BIN) $(BIN).flashimage; \
mv $(BIN).flashimage $(BIN); \
fi
+ifeq ($(CONFIG_RRLOAD_BINARY),y)
+ @tools/mkimage.sh nuttx nuttx.rr
+ @if [ -w /tftpboot ] ; then \
+ cp -f nuttx.rr /tftpboot/nuttx.rr.${CONFIG_ARCH}; \
+ fi
+endif
endif
depend:
@@ -127,7 +133,7 @@ clean:
done
$(MAKE) -C tools -f Makefile.mkconfig TOPDIR=$(TOPDIR) clean
$(MAKE) -C mm -f Makefile.test TOPDIR=$(TOPDIR) clean
- rm -f $(BIN) context mm_test System.map *~ *.flashimage
+ rm -f $(BIN) $(BIN).rr $(BIN).stripped $(BIN).flashimage mm_test System.map *~
distclean: clean clean_context
@for dir in $(SUBDIRS) ; do \