aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ds/ds.mk
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/ds/ds.mk')
-rw-r--r--backends/platform/ds/ds.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/platform/ds/ds.mk b/backends/platform/ds/ds.mk
index 0fd8ac7cda..9df0d2ba0d 100644
--- a/backends/platform/ds/ds.mk
+++ b/backends/platform/ds/ds.mk
@@ -92,6 +92,10 @@ OPT_SIZE := -Os -mthumb
all: scummvm.nds scummvm.ds.gba
+%.bin: %.elf
+ $(OBJCOPY) -S $< $(<F)-stripped.elf
+ $(OBJCOPY) -O binary $(<F)-stripped.elf $@
+
%.nds: %.bin $(ndsdir)/arm7/arm7.bin
ndstool -c $@ -9 $< -7 $(ndsdir)/arm7/arm7.bin -b $(srcdir)/$(ndsdir)/$(LOGO) "$(@F);ScummVM $(VERSION);DS Port"