Skip to content

Commit

Permalink
Added FIRM entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k3 committed May 20, 2017
1 parent de6cbdf commit 7dcabdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitmodules
Expand Up @@ -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
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -114,7 +114,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
Expand All @@ -129,6 +129,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
Expand All @@ -153,6 +156,7 @@ brahma: submodules binary
release:
@rm -fr $(BUILD) $(OUTPUT_D) $(RELEASE)
@make --no-print-directory binary
@-make --no-print-directory firm
@-make --no-print-directory gateway
@-make --no-print-directory cakerop
@-make --no-print-directory brahma
Expand All @@ -161,6 +165,7 @@ release:
@[ -d $(RELEASE)/scripts ] || mkdir -p $(RELEASE)/scripts
@-cp $(OUTPUT_D)/Launcher.dat $(RELEASE)
@cp $(OUTPUT).bin $(RELEASE)
@-cp $(OUTPUT).firm $(RELEASE)
@-cp $(OUTPUT).dat $(RELEASE)
@-cp $(OUTPUT).nds $(RELEASE)
@-cp $(OUTPUT).3dsx $(RELEASE)/$(TARGET)
Expand Down
1 change: 1 addition & 0 deletions firmtool
Submodule firmtool added at 375e66

0 comments on commit 7dcabdf

Please sign in to comment.