summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-07-04 12:38:03 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-07-04 12:38:03 -0400
commit47e39cc08132f43a25d49a807a5a8d5718424cff (patch)
tree0e3034c0f28ab3e75264f7147dc25e1f833704d8 /Makefile
parentdc06934d12b2b1e840bba06e2b242e345a823200 (diff)
Add variable to shift the ROM
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2e1b1082..9b8b430e 100644
--- a/Makefile
+++ b/Makefile
@@ -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)