summaryrefslogtreecommitdiff
path: root/nuttx/arch/z80/src/Makefile.sdcc
diff options
context:
space:
mode:
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