Build boot ROMs with RGBDS 0.9.4 or greater

This commit is contained in:
Rangi42
2025-09-02 13:53:34 -04:00
parent 8a234a25a3
commit c11c5e1764
4 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -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
+1 -1
View File
@@ -32,4 +32,4 @@ if [ -n "$FAILED_TESTS" ] ; then
exit 1
fi
echo Passed all tests
echo Passed all tests
+2 -2
View File
@@ -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
+2 -4
View File
@@ -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