Use dd instead of non-POSIX head(1) options to trim bootroms.
This commit is contained in:
parent
795823e372
commit
07bdc60a49
2
Makefile
2
Makefile
@ -315,7 +315,7 @@ $(BIN)/BootROMs/%.bin: BootROMs/%.asm
|
|||||||
-@$(MKDIR) -p $(dir $@)
|
-@$(MKDIR) -p $(dir $@)
|
||||||
cd BootROMs && rgbasm -o ../$@.tmp ../$<
|
cd BootROMs && rgbasm -o ../$@.tmp ../$<
|
||||||
rgblink -o $@.tmp2 $@.tmp
|
rgblink -o $@.tmp2 $@.tmp
|
||||||
head -c $(if $(findstring dmg,$@)$(findstring sgb,$@), 256, 2304) $@.tmp2 > $@
|
dd if=$@.tmp2 of=$@ count=1 bs=$(if $(findstring dmg,$@)$(findstring sgb,$@),256,2304)
|
||||||
@rm $@.tmp $@.tmp2
|
@rm $@.tmp $@.tmp2
|
||||||
|
|
||||||
# Libretro Core (uses its own build system)
|
# Libretro Core (uses its own build system)
|
||||||
|
Loading…
Reference in New Issue
Block a user