From db1fa71745a6604612f295c4f5a33169bde75a75 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 5 Jul 2010 10:07:06 +0000 Subject: NDS: Enable compilation of backend specific files Also tried to enable the conversion of .raw/.pal/.bin files, but this does not currently work (probably something really silly, but I don't have the time to debug this right now). svn-id: r50671 --- backends/platform/ds/ds.mk | 10 +++++----- backends/platform/ds/module.mk | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/backends/platform/ds/ds.mk b/backends/platform/ds/ds.mk index 555e7ece06..40a7e14965 100644 --- a/backends/platform/ds/ds.mk +++ b/backends/platform/ds/ds.mk @@ -18,7 +18,7 @@ OPT_SIZE := -Os -mthumb #-mthumb -fno-gcse -fno-schedule-insns2 -OBJS := $(DATA_OBJS) $(LIBCARTRESET_OBJS) $(PORT_OBJS) $(COMPRESSOR_OBJS) $(FAT_OBJS) +#OBJS := $(DATA_OBJS) $(LIBCARTRESET_OBJS) $(PORT_OBJS) $(COMPRESSOR_OBJS) $(FAT_OBJS) # TODO: Handle files in OPTLIST. @@ -99,10 +99,10 @@ $(ndsdir)/arm7/source/main.o: CXXFLAGS=$(ARM7_CXXFLAGS) $(ndsdir)/arm7/source/main.o: CPPFLAGS= # Rule for creating ARM7 .bin files from .elf files -%.bin: %.elf - @echo ------ - @echo Building $@... - $(OBJCOPY) -O binary $< $@ +#%.bin: %.elf +# @echo ------ +# @echo Building $@... +# $(OBJCOPY) -O binary $< $@ # Rule for creating ARM7 .elf files by linking .o files together with a special linker script %.elf: diff --git a/backends/platform/ds/module.mk b/backends/platform/ds/module.mk index 16630dc070..676fd20628 100644 --- a/backends/platform/ds/module.mk +++ b/backends/platform/ds/module.mk @@ -59,7 +59,38 @@ LIBCARTRESET_OBJS := #arm9/source/libcartreset/cartreset.o -MODULE_OBJS := +#MODULE_OBJS := $(PORT_OBJS) $(DATA_OBJS) $(FAT_OBJS) +MODULE_OBJS := $(DATA_OBJS) $(LIBCARTRESET_OBJS) $(PORT_OBJS) $(COMPRESSOR_OBJS) $(FAT_OBJS) + + +#--------------------------------------------------------------------------------- +# canned command sequence for binary data +#--------------------------------------------------------------------------------- +define bin2o + bin2s $< | $(AS) -mthumb -mthumb-interwork -o $(@) + echo "extern const u8" `(echo $( `(echo $(> `(echo $(> `(echo $(