27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
# Disable xwayland for embedded system
|
|
PACKAGECONFIG:remove = "xwayland"
|
|
|
|
# Configure Weston for kiosk mode - single fullscreen app
|
|
do_install:append() {
|
|
# Use kiosk shell for single-app embedded system
|
|
sed -i '/^\[core\]/a shell=kiosk-shell.so' ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
|
|
# Add fallback backend configuration for hardware compatibility
|
|
echo "" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "# Try DRM first, fallback to headless if no graphics" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "backend=drm-backend.so" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
|
|
# DRM backend configuration
|
|
echo "[output]" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "name=HDMI-A-1" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "mode=1920x1080" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
|
|
# Disable desktop shell features
|
|
echo "[shell]" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "panel-position=none" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "locking=false" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "background-type=solid" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
echo "background-color=0xff000000" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
|
} |