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 4708b33 commit 1ccc9ba
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "firmtool"]
path = firmtool
url = https://github.com/TuxSH/firmtool.git
ignore = dirty
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
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 a9lh release
.PHONY: common clean all a9lh firm release

#---------------------------------------------------------------------------------
all: a9lh
Expand All @@ -125,10 +125,15 @@ common:

a9lh: common
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile

firm: a9lh
@firmtool/firmtool build $(OUTPUT).firm -n 0x23F00000 -e 0 -D $(OUTPUT).bin -A 0x23F00000 -C NDMA -i


release: a9lh
release: a9lh firm
@[ -d $(RELEASE) ] || mkdir -p $(RELEASE)
@cp $(OUTPUT).bin $(RELEASE)
@-cp $(OUTPUT).firm $(RELEASE)
@cp $(CURDIR)/README.md $(RELEASE)
@-[ ! -n "$(strip $(THEME))" ] || (mkdir $(RELEASE)/$(THEME) && cp $(CURDIR)/resources/$(THEME)/*.bin $(RELEASE)/$(THEME))
@-7z a $(RELEASE)/$(TARGET)-`date +'%Y%m%d-%H%M%S'`.zip $(RELEASE)/*
Expand Down
1 change: 1 addition & 0 deletions firmtool
Submodule firmtool added at 375e66
2 changes: 1 addition & 1 deletion source/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#define BUFFER_MAX_SIZE ((u32) (1 * 1024 * 1024))

// info / log file name
#define VERSION_NAME "Hourglass9 v1.45"
#define VERSION_NAME "Hourglass9 v1.50"
#define LOG_FILE "Hourglass9.log"

// hacky handling of D9 game dir stuff
Expand Down

0 comments on commit 1ccc9ba

Please sign in to comment.