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 --- .../recipes-graphics/wayland/weston-ini-conf.bbappend | 16 ++++++---------- .../wayland/weston-ini-conf/v4l2-renderer.cfg | 3 +++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf/v4l2-renderer.cfg (limited to 'meta-agl-bsp/meta-rcar-gen3/recipes-graphics') diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf.bbappend b/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf.bbappend index 661af2b92..78be21187 100644 --- a/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf.bbappend +++ b/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf.bbappend @@ -1,14 +1,10 @@ -WESTONCORE[repaint-window] ??= "34" +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" -WESTONIVISHELL[transition-duration] ??= "300" -WESTONIVISHELL[cursor-theme] ??= "default" +SRC_URI += "${@bb.utils.contains("MACHINE_FEATURES", "multimedia", "file://v4l2-renderer.cfg", "",d)}" -WESTONV4L2RENDERER[device] ??= "/dev/media0" -WESTONV4L2RENDERER[device-module] ??= "vsp2" +do_configure() { + echo repaint-window=34 >> ${WORKDIR}/core.cfg -python() { - if "multimedia" in d.getVar("MACHINE_FEATURES", True).split(" "): - d.setVarFlag("WESTONSECTION", "WESTONV4L2RENDERER", "v4l2-renderer") + echo transition-duration=300 >> ${WORKDIR}/ivishell.cfg + echo cursor-theme=default >> ${WORKDIR}/ivishell.cfg } - -do_generate_weston_init[vardeps] += "WESTONIVISHELL WESTONV4L2RENDERER" diff --git a/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf/v4l2-renderer.cfg b/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf/v4l2-renderer.cfg new file mode 100644 index 000000000..135f2303c --- /dev/null +++ b/meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf/v4l2-renderer.cfg @@ -0,0 +1,3 @@ +[v4l2-renderer] +device=/dev/media0 +device-module=vsp2 -- cgit 1.2.3-korg