diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-07-04 12:38:03 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-07-04 12:38:03 -0400 |
commit | 47e39cc08132f43a25d49a807a5a8d5718424cff (patch) | |
tree | 0e3034c0f28ab3e75264f7147dc25e1f833704d8 /Makefile | |
parent | dc06934d12b2b1e840bba06e2b242e345a823200 (diff) |
Add variable to shift the ROM
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -194,10 +194,10 @@ $(BUILD_DIR)/%.o: %.s $$(dep) $(AS) $(ASFLAGS) $< -o $@ arm9: - $(MAKE) -C arm9 COMPARE=$(COMPARE) GAME_LANGUAGE=$(GAME_LANGUAGE) GAME_VERSION=$(GAME_VERSION) + $(MAKE) -C arm9 $(MAKE_VARS) arm7: - $(MAKE) -C arm7 COMPARE=$(COMPARE) GAME_LANGUAGE=$(GAME_LANGUAGE) GAME_VERSION=$(GAME_VERSION) + $(MAKE) -C arm7 $(MAKE_VARS) include filesystem.mk @@ -205,7 +205,11 @@ include filesystem.mk # FIXME: Computed secure area CRC in header is incorrect due to first 8 bytes of header not actually being "encryObj" $(ROM): rom.rsf arm9 arm7 filesystem $(BNR) tools/bin/rom_header.template.sbin $(MAKEROM) -DBUILD_DIR="$(BUILD_DIR)" -DBNR="$(BNR)" -DTITLE_NAME="$(TITLE_NAME)" -DNITROFS_FILES="$(NITROFS_FILES)" $< $@ +ifeq ($(SHIFTED),0) $(FIXROM) $@ --secure-crc $(SECURE_CRC) --game-code $(GAME_CODE) +else + $(FIXROM) $@ --game-code $(GAME_CODE) +endif # Make sure build directory exists before compiling anything DUMMY != mkdir -p $(ALL_DIRS) |