DS(i): Compile a .ds.gba version for GBA flashcards

This commit is contained in:
RocketRobz 2020-08-22 03:11:46 -06:00
parent b653024031
commit 6c34f92c5a
3 changed files with 6 additions and 2 deletions

1
nds/.gitignore vendored
View File

@ -1,6 +1,7 @@
# Binary File
*.nds
*.NDS
*.gba
*.cia
*.app
*.elf

View File

@ -12,7 +12,7 @@ include $(DEVKITARM)/ds_rules
.PHONY: clean makearm7 makearm9
all: $(TARGET).nds
all: $(TARGET).nds $(TARGET).ds.gba
makearm7:
$(MAKE) -C arm7
@ -26,9 +26,12 @@ $(TARGET).nds: makearm7 makearm9
ndstool -c $(TARGET).nds -7 $(TARGET).arm7.elf -9 $(TARGET).arm9.elf -d $(NITRODATA) \
-g HPHA 00 "SUPERPHOTO" -z 80040000 -u 00030004 -a 00000138 -b icon.bmp "Super Photo Studio;RocketRobz"
$(TARGET).ds.gba: $(TARGET).nds
cat loader.bin $(TARGET).nds > $(TARGET).ds.gba
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).elf $(TARGET).nds
@rm -fr $(BUILD) $(TARGET).elf $(TARGET).nds $(TARGET).ds.gba
@rm -fr $(TARGET).arm7.elf
@rm -fr $(TARGET).arm9.elf
@$(MAKE) -C arm9 clean

BIN
nds/loader.bin Normal file

Binary file not shown.