mirror of
https://github.com/LIJI32/SameBoy.git
synced 2026-10-12 02:06:38 +00:00
Build boot ROMs with RGBDS 0.9.4 or greater
This commit is contained in:
@@ -4,7 +4,7 @@ case `echo $1 | cut -d '-' -f 1` in
|
||||
sudo apt-get install -yq bison libpng-dev pkg-config libsdl2-dev libgdk-pixbuf2.0-dev
|
||||
(
|
||||
cd `mktemp -d`
|
||||
curl -L https://github.com/rednex/rgbds/archive/v0.6.0.zip > rgbds.zip
|
||||
curl -L https://github.com/gbdev/rgbds/archive/v0.9.4.zip > rgbds.zip
|
||||
unzip rgbds.zip
|
||||
cd rgbds-*
|
||||
make -sj
|
||||
@@ -33,4 +33,4 @@ case `echo $1 | cut -d '-' -f 1` in
|
||||
echo "Unsupported OS"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
||||
@@ -32,4 +32,4 @@ if [ -n "$FAILED_TESTS" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo Passed all tests
|
||||
echo Passed all tests
|
||||
|
||||
@@ -981,10 +981,10 @@ GetPaletteIndex:
|
||||
.newLicensee
|
||||
ld l, LOW(NewLicenseeCode)
|
||||
ld a, [hli]
|
||||
cp "0"
|
||||
cp '0'
|
||||
jr nz, .notNintendo
|
||||
ld a, [hl]
|
||||
cp "1"
|
||||
cp '1'
|
||||
jr nz, .notNintendo
|
||||
|
||||
.doChecksum
|
||||
|
||||
@@ -171,10 +171,8 @@ RGBASM := $(RGBDS)rgbasm
|
||||
RGBLINK := $(RGBDS)rgblink
|
||||
RGBGFX := $(RGBDS)rgbgfx
|
||||
|
||||
# RGBASM 0.7+ deprecate and remove `-h`
|
||||
RGBASM_FLAGS := $(if $(filter $(shell echo 'println __RGBDS_MAJOR__ || (!__RGBDS_MAJOR__ && __RGBDS_MINOR__ > 6)' | $(RGBASM) -), $$0), -h,) --include $(OBJ)/BootROMs/ --include BootROMs/
|
||||
# RGBGFX 0.6+ replace `-h` with `-Z`, and need `-c embedded`
|
||||
RGBGFX_FLAGS := $(if $(filter $(shell echo 'println __RGBDS_MAJOR__ || (!__RGBDS_MAJOR__ && __RGBDS_MINOR__ > 5)' | $(RGBASM) -), $$0), -h -u, -Z -u -c embedded)
|
||||
RGBASM_FLAGS := --include $(OBJ)/BootROMs/ --include BootROMs/
|
||||
RGBGFX_FLAGS := --columns --unique-tiles --colors embedded
|
||||
|
||||
|
||||
# Set compilation and linkage flags based on target, platform and configuration
|
||||
|
||||
Reference in New Issue
Block a user