Add code for rk3399 legacy media framework installation

This commit is contained in:
fg
2021-03-05 18:28:08 +08:00
parent dc5ce82e48
commit 0807a33e5d
3 changed files with 97 additions and 31 deletions

View File

@@ -163,7 +163,7 @@ create_board_package()
EOF
if [[ $RELEASE == bionic ]] || [[ $RELEASE == focal && $BOARDFAMILY == sun50iw6 ]]; then
if [[ $RELEASE == bionic && $BOARD != orangepi4 ]] || [[ $RELEASE == focal && $BOARDFAMILY == sun50iw6 ]]; then
cat <<-EOF >> "${destination}"/DEBIAN/postinst
# temporally disable acceleration on some arch in Bionic due to broken mesa packages
echo 'Section "Device"
@@ -171,6 +171,14 @@ create_board_package()
\tOption \t"AccelMethod" "none"
EndSection' >> /etc/X11/xorg.conf.d/01-orangepi-defaults.conf
EOF
elif [[ $RELEASE == bionic && $BOARD == orangepi4 ]]; then
cat <<-EOF >> "${destination}"/DEBIAN/postinst
# temporally disable acceleration on some arch in Bionic due to broken mesa packages
echo 'Section "Device"
\tIdentifier \t"Default Device"
\tOption \t"AccelMethod" "glamor"
EndSection' >> /etc/X11/xorg.conf.d/01-orangepi-defaults.conf
EOF
fi
# install bootscripts if they are not present. Fix upgrades from old images