Added ability to build FIRMs

This commit is contained in:
d0k3 2017-05-18 16:33:44 +02:00
parent 4a241c7fd9
commit d314834986
3 changed files with 11 additions and 1 deletions

4
.gitmodules vendored
View File

@ -9,3 +9,7 @@
path = CakesROP
url = https://github.com/mid-kid/CakesROP
ignore = dirty
[submodule "firmtool"]
path = firmtool
url = https://github.com/TuxSH/firmtool.git
ignore = dirty

View File

@ -118,7 +118,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
.PHONY: common clean all gateway binary cakehax cakerop brahma release
.PHONY: common clean all gateway firm binary cakehax cakerop brahma release
#---------------------------------------------------------------------------------
all: binary
@ -133,6 +133,9 @@ submodules:
binary: common
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
firm: binary
@firmtool/firmtool build $(OUTPUT).firm -n 0x23F00000 -e 0 -D $(OUTPUT).bin -A 0x23F00000 -C NDMA -i
gateway: binary
@cp resources/LauncherTemplate.dat $(OUTPUT_D)/Launcher.dat
@dd if=$(OUTPUT).bin of=$(OUTPUT_D)/Launcher.dat bs=1497296 seek=1 conv=notrunc
@ -157,11 +160,13 @@ brahma: submodules binary
release:
@rm -fr $(BUILD) $(OUTPUT_D) $(RELEASE)
@make --no-print-directory binary
@-make --no-print-directory firm
@-make --no-print-directory cakerop
@-make --no-print-directory brahma
@[ -d $(RELEASE) ] || mkdir -p $(RELEASE)
@[ -d $(RELEASE)/$(TARGET) ] || mkdir -p $(RELEASE)/$(TARGET)
@cp $(OUTPUT).bin $(RELEASE)
@-cp $(OUTPUT).firm $(RELEASE)
@-cp $(OUTPUT).dat $(RELEASE)
@-cp $(OUTPUT).nds $(RELEASE)
@-cp $(OUTPUT).3dsx $(RELEASE)/$(TARGET)

1
firmtool Submodule

@ -0,0 +1 @@
Subproject commit a1b3a9465dcff39642ad2d22995dae35d54bb927