summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/Makefile.sdcc
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-18 14:20:19 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-18 14:20:19 +0000
commitf228329fa0ebcca753a3609ece42220b7d52dda4 (patch)
treefe1f57dad19724c0549776186cad794014eab36c /nuttx/arch/z80/src/Makefile.sdcc
parent33bf749d6ef688be1be75b172f21bd6c16a8ac35 (diff)
downloadnuttx-f228329fa0ebcca753a3609ece42220b7d52dda4.tar.gz
nuttx-f228329fa0ebcca753a3609ece42220b7d52dda4.tar.bz2
nuttx-f228329fa0ebcca753a3609ece42220b7d52dda4.zip
xtrs port: generation of executable. Patch 1895239
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@702 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/Makefile.sdcc')
-rw-r--r--nuttx/arch/z80/src/Makefile.sdcc7
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/arch/z80/src/Makefile.sdcc b/nuttx/arch/z80/src/Makefile.sdcc
index 51751be85..895ecc4ba 100644
--- a/nuttx/arch/z80/src/Makefile.sdcc
+++ b/nuttx/arch/z80/src/Makefile.sdcc
@@ -207,8 +207,13 @@ endif
nuttx$(EXEEXT): pass1.ihx nuttx.ihx
@rm -f pass1.*
- @packihx nuttx.ihx > $(TOPDIR)/nuttx$(EXEEXT)
@cp -f nuttx.map $(TOPDIR)/.
+ifeq ($(EXEEXT),.CMD)
+ sed s/:00000001FF/:00520001AD/ nuttx.ihx | \
+ hex2cmd > $(TOPDIR)/NUTTX.CMD
+else
+ @packihx nuttx.ihx > $(TOPDIR)/nuttx$(EXEEXT)
+endif
# Build dependencies