Enable Wayland for Embedded and L4T packages

This commit is contained in:
Cameron Gutman
2024-04-05 23:34:02 +00:00
parent 6785ae76ca
commit 20d3ed39c2
2 changed files with 14 additions and 6 deletions

View File

@@ -29,18 +29,28 @@ elif [ "$TARGET" == "rpi64" ]; then
EXTRA_CONFIG="$EXTRA_CONFIG CONFIG+=disable-mmal"
fi
elif [ "$TARGET" == "l4t" ]; then
EXTRA_DEPS=""
if [ "$DISTRO" != "bionic" ]; then
EXTRA_BUILD_DEPS="libwayland-dev, wayland-protocols"
EXTRA_DEPS="$EXTRA_DEPS, libdecor-0-0"
else
EXTRA_DEPS=""
fi
elif [ "$TARGET" == "desktop" ]; then
EXTRA_BUILD_DEPS="libwayland-dev, wayland-protocols, libva-dev, libvdpau-dev"
EXTRA_DEPS="$EXTRA_DEPS, libdecor-0-0"
elif [ "$TARGET" == "embedded" ]; then
EXTRA_CONFIG="CONFIG+=gpuslow"
if [ "$DISTRO" != "bullseye" ]; then
EXTRA_BUILD_DEPS="libwayland-dev, wayland-protocols"
EXTRA_DEPS="$EXTRA_DEPS, libdecor-0-0"
fi
else
echo "Unrecognized target: $TARGET"
exit 1
fi
# Determine extra distro-specific dependencies
if [ "$DISTRO" != "buster" ] && [ $DISTRO != "bionic" ]; then
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bionic" ]; then
EXTRA_BUILD_DEPS="$EXTRA_BUILD_DEPS, libfreetype-dev"
else
EXTRA_BUILD_DEPS="$EXTRA_BUILD_DEPS, libfreetype6-dev"

View File

@@ -17,8 +17,6 @@ else
apt-get install -y libgl1-mesa-dev
fi
if [ "$DISTRO" != "buster" ]; then
if [ "$TARGET" = "rpi" ] || [ "$TARGET" = "rpi64" ]; then
apt-get install -y wayland-protocols libwayland-dev libdecor-0-dev
fi
if [ "$DISTRO" != "buster" ] && [ "$DISTRO" != "bullseye" ] && [ "$DISTRO" != "bionic" ]; then
apt-get install -y wayland-protocols libwayland-dev libdecor-0-dev
fi