X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-agl-core%2Frecipes-graphics%2Fwayland%2FReadme.weston-ini-conf;h=ee75c73356464a383c921e5e2dec4f5ef02a8157;hb=3ed8bec1f924c6f710a0453346679db57ce8b951;hp=bbd5a80c41ba605c313c18db6b18f2374b293788;hpb=1c3c06842ac1b9c089d0a08e91c60f44e4844fac;p=AGL%2Fmeta-agl.git diff --git a/meta-agl-core/recipes-graphics/wayland/Readme.weston-ini-conf b/meta-agl-core/recipes-graphics/wayland/Readme.weston-ini-conf index bbd5a80c4..ee75c7335 100644 --- a/meta-agl-core/recipes-graphics/wayland/Readme.weston-ini-conf +++ b/meta-agl-core/recipes-graphics/wayland/Readme.weston-ini-conf @@ -1,10 +1,11 @@ ##Generate a weston.ini file: -To modify any of the default sections (core, shell, ivi-shell), add a -do_configure() function to your bbappend: +To modify any of the default sections (core, shell), add a +do_configure() function to your bbappend, using machine (e.g. h3ulcb) +overrides (i.e. use the MACHINE name where "machine" is used below): ''' -do_configure() { +do_configure:machine() { echo repaint-window=34 >> ${WORKDIR}/core.cfg echo transition-duration=300 >> ${WORKDIR}/ivishell.cfg @@ -13,22 +14,30 @@ do_configure() { ''' or: ''' -do_configure() { +do_configure:machine() { sed -i -e 's/drm-backend/fbdev-backend/' ${WORKDIR}/core.cfg } ''' -To change the display from the default assumption of an HDMI-1-A connected -screen that needs to be rotated 270 degrees: - -''' -SRC_URI_remove = "file://hdmi-a-1-270.cfg" -SRC_URI += "file://hdmi-a-1-90.cfg" +To add new non-display sections, just list them in SRC_URI and WESTON_FRAGMENTS: ''' +FILESEXTRAPATHS:prepend:machine := "${THISDIR}/${PN}:" + +SRC_URI:append:machine = " file://foo.cfg" +WESTON_FRAGMENTS:append:machine = " foo" -To add new sections just list them in SRC_URI: ''' -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -SRC_URI += "file://dsi.cfg" +To change the display, for example from the default assumption of an +HDMI-1-A connected screen that needs to be rotated 270 degrees to one +that is rotated 90 degrees, redefine the WESTON_DISPLAYS variable: + +''' +WESTON_DISPLAYS:machine = "hdmi-a-1-90" ''' + +Note that the weston-ini-conf recipe automatically generates a landscape +orientation version of weston.ini by replacing 90/270 degree rotation +fragments for HDMI-A-1 and the virtual output into 180 and 0 degrees, +respectively. This landscape configuration can be used in an image by +pulling in weston-ini-conf-landscape instead of weston-ini-conf.