aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Stewart2018-02-17 20:12:14 -0500
committerEugene Sandulenko2018-04-07 09:30:07 +0200
commita43f914abefaae80dd91c496ba5b77b46fb9d8d2 (patch)
tree61fe18266d2837f1df671bf8628506763b5a6ea8
parentb3ccc1ce744d161e0c64b4400ef51e6c4f50f346 (diff)
downloadscummvm-rg350-a43f914abefaae80dd91c496ba5b77b46fb9d8d2.tar.gz
scummvm-rg350-a43f914abefaae80dd91c496ba5b77b46fb9d8d2.tar.bz2
scummvm-rg350-a43f914abefaae80dd91c496ba5b77b46fb9d8d2.zip
DS: Fix building with ndstool
-rw-r--r--backends/platform/ds/ds.mk14
1 files changed, 2 insertions, 12 deletions
diff --git a/backends/platform/ds/ds.mk b/backends/platform/ds/ds.mk
index f2e7707a7f..18feea00c2 100644
--- a/backends/platform/ds/ds.mk
+++ b/backends/platform/ds/ds.mk
@@ -146,11 +146,8 @@ dsclean:
# TODO: Add a 'dsdist' target ?
-%.bin: %.elf
- $(OBJCOPY) -S -O binary $< $@
-
-%.nds: %.bin $(ndsdir)/arm7/arm7.bin
- ndstool -c $@ -9 $< -7 $(ndsdir)/arm7/arm7.bin -b $(srcdir)/$(ndsdir)/$(LOGO) "$(@F);ScummVM $(VERSION);DS Port"
+%.nds: %.elf $(ndsdir)/arm7/arm7.elf
+ ndstool -c $@ -9 $< -7 $(ndsdir)/arm7/arm7.elf -b $(srcdir)/$(ndsdir)/$(LOGO) "$(@F);ScummVM $(VERSION);DS Port"
%.ds.gba: %.nds
dsbuild $< -o $@ -l $(srcdir)/$(ndsdir)/arm9/ndsloader.bin
@@ -173,9 +170,6 @@ dsclean:
# as soon as possible.
CC := $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-gcc
-# HACK/TODO: Pointer to objcopy. This should really be set by configure
-OBJCOPY := $(DEVKITPRO)/devkitARM/bin/arm-none-eabi-objcopy
-
#
# Set various flags
#
@@ -219,10 +213,6 @@ $(ndsdir)/arm7/arm7.elf: \
$(ndsdir)/arm7/source/main.o
$(CXX) $(ARM7_LDFLAGS) -specs=ds_arm7.specs $+ -L$(DEVKITPRO)/libnds/lib -lnds7 -o $@
-# Rule for creating ARM7 .bin files from .elf files
-$(ndsdir)/arm7/arm7.bin: $(ndsdir)/arm7/arm7.elf
- $(OBJCOPY) -O binary $< $@
-