Use rgblink -x instead of dd

This saves a few build steps and intermediate files
This commit is contained in:
ISSOtm
2024-06-09 16:36:13 +02:00
parent 0b77662504
commit 2c5455e35d
2 changed files with 3 additions and 3 deletions

View File

@@ -1238,6 +1238,7 @@ BootEnd:
IF BootEnd > $900
FAIL "BootROM overflowed: {BootEnd}"
ENDC
ds $100 + $800 - @ ; Ensure that the ROM is padded up to standard size.
SECTION "HRAM", HRAM[$FF80]
TitleChecksum:

View File

@@ -638,9 +638,8 @@ $(BIN)/BootROMs/sgb2_boot: BootROMs/sgb_boot.asm
$(BIN)/BootROMs/%.bin: BootROMs/%.asm $(OBJ)/BootROMs/SameBoyLogo.pb12
-@$(MKDIR) -p $(dir $@)
$(RGBASM) -i $(OBJ)/BootROMs/ -i BootROMs/ -o $@.tmp $<
$(RGBLINK) -o $@.tmp2 $@.tmp
dd if=$@.tmp2 of=$@ count=1 bs=$(if $(findstring cgb,$@)$(findstring agb,$@),2304,256) 2> $(NULL)
@rm $@.tmp $@.tmp2
$(RGBLINK) -x -o $@ $@.tmp
@rm $@.tmp
# Libretro Core (uses its own build system)
libretro: