Build RPi packages with GL Slow option

This commit is contained in:
Cameron Gutman
2023-09-09 13:27:49 -05:00
parent 20c0d43215
commit f2243809bc
2 changed files with 9 additions and 0 deletions

View File

@@ -16,9 +16,11 @@ VERSION=`cat app/version.txt`
if [ "$TARGET" == "rpi" ]; then
EXTRA_BUILD_DEPS="libraspberrypi-dev | rbp-userland-dev-osmc"
EXTRA_DEPS="libraspberrypi0 | rbp-userland-osmc"
EXTRA_CONFIG="CONFIG+=glslow"
elif [ "$TARGET" == "rpi64" ]; then
EXTRA_BUILD_DEPS=""
EXTRA_DEPS=""
EXTRA_CONFIG="CONFIG+=glslow"
elif [ "$TARGET" == "l4t" ]; then
EXTRA_BUILD_DEPS=""
elif [ "$TARGET" == "desktop" ]; then
@@ -51,6 +53,10 @@ sed -i "s/EXTRA_BUILD_DEPS/$EXTRA_BUILD_DEPS/g" debian/control
sed -i "s/EXTRA_DEPS/$EXTRA_DEPS/g" debian/control
cat debian/control
# Patch the rules file with target-specific config options
sed -i "s/EXTRA_CONFIG/$EXTRA_CONFIG/g" debian/rules
cat debian/rules
# Build the package
debuild -us -uc