From 7f8b394a694491ffd94874c26fa83057efaa0dfc Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 18 Oct 2017 09:38:05 -0400 Subject: weston-ini-conf: Rework to use fragments to construct weston.ini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch to constructing the weston.ini from fragments of files instead of variables and variable flags. This allows for much easier tracking of signatures by leveraging existing mechanisms. Update the Readme to explain how to do the various operations with fragments as well. Note that for QEMU we do not need to pass -show-cursor as it's already provided and we do want to change the VGA driver to one that reliably provides DRM support. For the HDMI connected screens, rather than name them by vendor name them first for connection and then required transformation for correct orientation. For board-specific options, move them to the board directories. When we need to change existing cfg options, rather than replace them the proper location to do this in is the do_configure function. Bug-AGL: SPEC-964 Change-Id: I2cceb4fd64f51eb2ab1d47419b77153cf02d7c12 Signed-off-by: Tom Rini Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11375 Reviewed-by: Stéphane Desneux Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller --- .../wayland/weston-ini-conf.bbappend | 22 ++++++----------- .../wayland/weston-ini-conf/virtual.cfg | 17 +++++++++++++ .../wayland/weston/weston-qemu-drm.ini | 28 ---------------------- 3 files changed, 24 insertions(+), 43 deletions(-) create mode 100644 meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf/virtual.cfg delete mode 100644 meta-agl-bsp/recipes-graphics/wayland/weston/weston-qemu-drm.ini (limited to 'meta-agl-bsp/recipes-graphics/wayland') diff --git a/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf.bbappend b/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf.bbappend index dba2ad6b2..8fa08bc3b 100644 --- a/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf.bbappend +++ b/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf.bbappend @@ -1,17 +1,9 @@ -# OVERRIDES save us some c'n'p below ... -OVERRIDES_prepend_qemux86 = "customwestonini:" -OVERRIDES_prepend_qemux86-64 = "customwestonini:" -# intel-corei7-64 ?? - -python() { - if "customwestonini" in d.getVar("OVERRIDES", True).split(":"): - # DRM backend disabled for now to allow compatibility with VirtualBox - # and VMWare Player. It may be re-enabled if running on QEMU for - # potentially increased performance. - #backend=drm-backend.so - d.delVarFlag("WESTONCORE", "backend") - - d.setVarFlag("WESTONOUTPUT1","agl_screen", "SCREEN_QEMU") -} +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +# OVERRIDES save us some c'n'p below ... +OVERRIDES_prepend_qemux86 = "virtualmachine:" +OVERRIDES_prepend_qemux86-64 = "virtualmachine:" +# Switch to the Virtual section that we have when a valid DRM device is found +SRC_URI_remove_virtualmachine = "file://hdmi-a-1-270.cfg" +SRC_URI_append_virtualmachine = " file://virtual.cfg" diff --git a/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf/virtual.cfg b/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf/virtual.cfg new file mode 100644 index 000000000..776f295c8 --- /dev/null +++ b/meta-agl-bsp/recipes-graphics/wayland/weston-ini-conf/virtual.cfg @@ -0,0 +1,17 @@ +[output] +name=Virtual-1 +#mode=1920x1080 +#mode=1600x1200 +#mode=1680x1050 +#mode=1400x1050 +mode=1600x900 +#mode=1280x1024 +#mode=1440x900 +#mode=1280x960 +#mode=1360x768 +#mode=1280x800 +#mode=1280x768 +#mode=1280x720 +#mode=800x600 +#mode=848x480 +#mode=640x480 diff --git a/meta-agl-bsp/recipes-graphics/wayland/weston/weston-qemu-drm.ini b/meta-agl-bsp/recipes-graphics/wayland/weston/weston-qemu-drm.ini deleted file mode 100644 index f502eff7a..000000000 --- a/meta-agl-bsp/recipes-graphics/wayland/weston/weston-qemu-drm.ini +++ /dev/null @@ -1,28 +0,0 @@ -[core] -shell=ivi-shell.so -# DRM backend disabled for now to allow compatibility with VirtualBox -# and VMWare Player. It may be re-enabled if running on QEMU for -# potentially increased performance. -#backend=drm-backend.so - -[ivi-shell] -ivi-module=ivi-controller.so -ivi-input-module=ivi-input-controller.so - -[output] -name=Virtual-1 -#mode=1920x1080 -#mode=1600x1200 -#mode=1680x1050 -#mode=1400x1050 -mode=1600x900 -#mode=1280x1024 -#mode=1440x900 -#mode=1280x960 -#mode=1360x768 -#mode=1280x800 -#mode=1280x768 -#mode=1280x720 -#mode=800x600 -#mode=848x480 -#mode=640x480 -- cgit 1.2.3-korg