mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Added ability to build FIRMs
This commit is contained in:
parent
4a241c7fd9
commit
d314834986
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -9,3 +9,7 @@
|
|||||||
path = CakesROP
|
path = CakesROP
|
||||||
url = https://github.com/mid-kid/CakesROP
|
url = https://github.com/mid-kid/CakesROP
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
|
[submodule "firmtool"]
|
||||||
|
path = firmtool
|
||||||
|
url = https://github.com/TuxSH/firmtool.git
|
||||||
|
ignore = dirty
|
||||||
|
7
Makefile
7
Makefile
@ -118,7 +118,7 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
|
|||||||
|
|
||||||
export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
|
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
|
all: binary
|
||||||
@ -133,6 +133,9 @@ submodules:
|
|||||||
binary: common
|
binary: common
|
||||||
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
|
@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
|
gateway: binary
|
||||||
@cp resources/LauncherTemplate.dat $(OUTPUT_D)/Launcher.dat
|
@cp resources/LauncherTemplate.dat $(OUTPUT_D)/Launcher.dat
|
||||||
@dd if=$(OUTPUT).bin of=$(OUTPUT_D)/Launcher.dat bs=1497296 seek=1 conv=notrunc
|
@dd if=$(OUTPUT).bin of=$(OUTPUT_D)/Launcher.dat bs=1497296 seek=1 conv=notrunc
|
||||||
@ -157,11 +160,13 @@ brahma: submodules binary
|
|||||||
release:
|
release:
|
||||||
@rm -fr $(BUILD) $(OUTPUT_D) $(RELEASE)
|
@rm -fr $(BUILD) $(OUTPUT_D) $(RELEASE)
|
||||||
@make --no-print-directory binary
|
@make --no-print-directory binary
|
||||||
|
@-make --no-print-directory firm
|
||||||
@-make --no-print-directory cakerop
|
@-make --no-print-directory cakerop
|
||||||
@-make --no-print-directory brahma
|
@-make --no-print-directory brahma
|
||||||
@[ -d $(RELEASE) ] || mkdir -p $(RELEASE)
|
@[ -d $(RELEASE) ] || mkdir -p $(RELEASE)
|
||||||
@[ -d $(RELEASE)/$(TARGET) ] || mkdir -p $(RELEASE)/$(TARGET)
|
@[ -d $(RELEASE)/$(TARGET) ] || mkdir -p $(RELEASE)/$(TARGET)
|
||||||
@cp $(OUTPUT).bin $(RELEASE)
|
@cp $(OUTPUT).bin $(RELEASE)
|
||||||
|
@-cp $(OUTPUT).firm $(RELEASE)
|
||||||
@-cp $(OUTPUT).dat $(RELEASE)
|
@-cp $(OUTPUT).dat $(RELEASE)
|
||||||
@-cp $(OUTPUT).nds $(RELEASE)
|
@-cp $(OUTPUT).nds $(RELEASE)
|
||||||
@-cp $(OUTPUT).3dsx $(RELEASE)/$(TARGET)
|
@-cp $(OUTPUT).3dsx $(RELEASE)/$(TARGET)
|
||||||
|
1
firmtool
Submodule
1
firmtool
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a1b3a9465dcff39642ad2d22995dae35d54bb927
|
Loading…
x
Reference in New Issue
Block a user