t527: Add gpu acceleration and gst hw decode

This commit is contained in:
baiywt
2024-11-26 20:50:57 +08:00
parent 23158a3ecc
commit 5f17bb4711
7 changed files with 42 additions and 3 deletions

View File

@@ -75,6 +75,23 @@ family_tweaks_s()
SERIALCON="ttyAS0"
fi
rsync -a --chown=root:root "${EXTER}"/packages/bsp/t527/* ${SDCARD}/
if [[ ${SELECTED_CONFIGURATION} == desktop ]]; then
local packages_to_install=("mesa" "libcedarc" "gst-omx")
chroot $SDCARD /bin/bash -c "apt-get -y -qq install gstreamer1.0-x" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
for package in ${packages_to_install[@]}; do
dpkg_install_debs_chroot $EXTER/cache/sources/t527_packages/$RELEASE/$package
done
if [[ $RELEASE == jammy ]]; then
chroot $SDCARD /bin/bash -c "apt-get -y -qq install glmark2 glmark2-wayland" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
elif [[ $RELEASE == bookworm ]]; then
chroot $SDCARD /bin/bash -c "apt-get -y -qq install glmark2-x11 glmark2-wayland" >> "${DEST}"/${LOG_SUBPATH}/install.log 2>&1
fi
fi
install_wiringop
}