Skip to content
Snippets Groups Projects
Commit 663ddd2e authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

packages:weston: Clean-up of recipes

parent 4618c3d4
No related branches found
No related tags found
1 merge request!597weston:mx6ull: Reworked Nallino Weston configuration
......@@ -13,9 +13,9 @@ RDEPENDS:${PN} += " touchcal-conv "
# because it breaks them. Keep this in mind when adding additional
# tasks/steps here.
pkg_postinst_ontarget:${PN}() {
# Read out the platform as reported by gfplatdetect
gfplatdetect=$(find /sys/devices -type d -name gfplatdetect )
if [ -n "$gfplatdetect" ];then
platform="$(< ${gfplatdetect}/board)"
else
......@@ -41,12 +41,12 @@ pkg_postinst_ontarget:${PN}() {
sed -i ${sysconfdir}/xdg/weston/weston.ini -e "s|DPI-1|$output|"
# Use the rotation value from the kernel commandline also for weston
if [ -r /sys/class/graphics/fbcon/rotate ];then
if [ -r /sys/class/graphics/fbcon/rotate ]; then
case "$(cat /sys/class/graphics/fbcon/rotate)" in
1) ROTATE=rotate-90 ;;
2) ROTATE=rotate-180 ;;
3) ROTATE=rotate-270 ;;
*) ROTATE=normal ;;
*) ROTATE=normal ;;
esac
sed -i ${sysconfdir}/xdg/weston/weston.ini -e "s|^transform=.*\$|transform=$ROTATE|"
fi
......@@ -56,6 +56,7 @@ do_configure:append() {
# The graphical.target depends on a display manager which we don't have.
# Replace it with the multi-user.target.
sed -i ${WORKDIR}/weston.service -e "s|^WantedBy=.*|WantedBy=multi-user.target|"
if ${@bb.utils.contains('DISTRO_FEATURES','x11','true','false',d)}; then
# Disable kiosk-shell
sed -i ${WORKDIR}/weston.ini -e "s|^shell=kiosk-shell.so.*\$|#shell=kiosk-shell.so|"
......
......@@ -23,9 +23,9 @@ do_install:append() {
# because it breaks them. Keep this in mind when adding additional
# tasks/steps here.
pkg_postinst_ontarget:${PN}() {
# Read out the platform as reported by gfplatdetect
gfplatdetect=$(find /sys/devices -type d -name gfplatdetect )
if [ -n "$gfplatdetect" ];then
platform="$(< ${gfplatdetect}/board)"
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment