weston-ini-conf: Rework to use fragments to construct weston.ini
[AGL/meta-agl.git] / meta-agl / recipes-graphics / wayland / Readme.weston-ini-conf
index ec658ce..bbd5a80 100644 (file)
@@ -1,40 +1,34 @@
-#Generate a weston.ini file:
+##Generate a weston.ini file:
 
-# WARNING Due to a bug in Yocto cache, changes in related bbappand are not detected
-# Work-around:
-#   bitbake weston-ini-conf -c clean ; bitbake weston-ini-conf -c cleansstate
+To modify any of the default sections (core, shell, ivi-shell), add a
+do_configure() function to your bbappend:
 
-To generate the weston.ini file:
-
-'''
-[core]
-backend=drm-backend.so
-shell=desktop-shell.so
 '''
+do_configure() {
+    echo repaint-window=34 >> ${WORKDIR}/core.cfg
 
-Just create a Variable Flag:
-
+    echo transition-duration=300 >> ${WORKDIR}/ivishell.cfg
+    echo cursor-theme=default >> ${WORKDIR}/ivishell.cfg
+}
 '''
-WESTONCORE[backend]??="drm-backend.so"
-WESTONCORE[shell]??="desktop-shell.so"
+or:
 '''
-
-And add it to the Variable Flag WESTONSECTION, with the name of the section:
-'''
-WESTONSECTION[WESTONCORE]?="core"
+do_configure() {
+    sed -i -e 's/drm-backend/fbdev-backend/' ${WORKDIR}/core.cfg
+}
 '''
 
-#You can custumize weston.ini by create a weston-ini-conf.bbappend:
+To change the display from the default assumption of an HDMI-1-A connected
+screen that needs to be rotated 270 degrees:
 
 '''
-WESTONCORE[repaint-window] ??= "34"
+SRC_URI_remove = "file://hdmi-a-1-270.cfg"
+SRC_URI += "file://hdmi-a-1-90.cfg"
 '''
 
-This will generate weston.ini file:
-
+To add new sections just list them in SRC_URI:
 '''
-[core]
-backend=drm-backend.so
-shell=ivi-shell.so
-repaint-window=34
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI += "file://dsi.cfg"
 '''