mirror of
https://github.com/pret/pmd-red.git
synced 2024-11-23 05:00:12 +00:00
fix: fix Makefile to not zero out the ROM header
This commit is contained in:
parent
cf96b51987
commit
13a5895b81
3
Makefile
3
Makefile
@ -251,10 +251,11 @@ $(LD_SCRIPT): ld_script.txt $(BUILD_DIR)/sym_ewram.ld $(BUILD_DIR)/sym_ewram2.ld
|
||||
|
||||
$(ELF): $(LD_SCRIPT) $(ALL_OBJECTS) $(LIBC) libagbsyscall tools
|
||||
cd $(BUILD_DIR) && $(LD) -T ld_script.ld -Map ../../$(MAP) -o ../../$@ $(LIB)
|
||||
$(GBAFIX) $@ -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent
|
||||
|
||||
$(ROM): %.gba: $(ELF)
|
||||
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0xA000000 $< $@
|
||||
$(GBAFIX) $@ -p -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent
|
||||
$(GBAFIX) $@ -p --silent
|
||||
|
||||
ifeq (,$(filter clean,$(MAKECMDGOALS)))
|
||||
-include $(ALL_OBJECTS:.o=.d)
|
||||
|
Loading…
Reference in New Issue
Block a user