Rework the build scripts and dockerfiles with generic embedded targets

This commit is contained in:
Cameron Gutman
2023-09-19 23:43:43 +00:00
parent a8aef4714c
commit 72ec840806
34 changed files with 304 additions and 98 deletions

View File

@@ -18,18 +18,30 @@ if [ "$TARGET" == "rpi" ]; then
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=""
EXTRA_DEPS=""
elif [ "$TARGET" == "desktop" ]; then
EXTRA_BUILD_DEPS="libwayland-dev, wayland-protocols, libva-dev, libvdpau-dev"
elif [ "$TARGET" == "embedded" ]; then
EXTRA_CONFIG="CONFIG+=glslow"
else
echo "Unrecognized target: $TARGET"
exit 1
fi
# Determine extra distro-specific dependencies
if [ "$DISTRO" != "buster" ] && [ $DISTRO != "bionic" ]; then
EXTRA_BUILD_DEPS="$EXTRA_BUILD_DEPS, libfreetype-dev"
else
EXTRA_BUILD_DEPS="$EXTRA_BUILD_DEPS, libfreetype6-dev"
fi
if [ "$DISTRO" != "bionic" ]; then
EXTRA_BUILD_DEPS="$EXTRA_BUILD_DEPS, libgl-dev"
else
EXTRA_BUILD_DEPS="$EXTRA_BUILD_DEPS, libgl1-mesa-dev"
fi
# Create a build directory
mkdir /opt/build