weston-ini-conf: Make this track variables correctly for signatures 55/11255/3
authorTom Rini <trini@konsulko.com>
Thu, 12 Oct 2017 13:20:19 +0000 (09:20 -0400)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 12 Oct 2017 21:50:49 +0000 (21:50 +0000)
bitbake does not know to track values that are found and used via
getVarFlags() without them being otherwise refernced and tracked in ways
that are otherwise caught.  Further given that we use multiple levels of
varflags here we need to be explicit in their tracking.  Add all
variables that we use to varflags where they are added to the metadata.

Bug-AGL: SPEC-939
Change-Id: I32cf16c4354d733e086c6ea9a845934beff94715
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/11255
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
12 files changed:
meta-agl-bsp/meta-freescale-layer/recipes-graphics/wayland/weston-ini-conf.bbappend
meta-agl-bsp/meta-intel/recipes-graphics/wayland/weston-ini-conf.bbappend
meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston-ini-conf.bbappend
meta-agl-bsp/meta-rcar-gen3/recipes-graphics/wayland/weston-ini-conf.bbappend
meta-agl-bsp/meta-renesas/recipes-graphics/wayland/weston-ini-conf.bbappend
meta-agl/recipes-graphics/wayland/Readme.weston-ini-conf
meta-agl/recipes-graphics/wayland/weston-ini-conf.bb
meta-agl/recipes-graphics/wayland/weston-ini-conf/screen_DSI.inc
meta-agl/recipes-graphics/wayland/weston-ini-conf/screen_GeChic.inc
meta-agl/recipes-graphics/wayland/weston-ini-conf/screen_dell.inc
meta-agl/recipes-graphics/wayland/weston-ini-conf/screen_eGalax.inc
meta-agl/recipes-graphics/wayland/weston-ini-conf/screen_qemu.inc

index fb3f1ac..731578e 100644 (file)
@@ -1,8 +1,4 @@
 # Select default screen type and orientation
 # and only one default output
 
-# Note when such change is applied it will not be taken due to a Yocto cache error
-# Fix:
-# bitbake weston-ini-conf -c clean ; bitbake weston-ini-conf -c cleansstate
-
 WESTONOUTPUT1[agl_screen] = "SCREEN_eGalax"
index e46b10e..661af2b 100644 (file)
@@ -10,3 +10,5 @@ python() {
     if "multimedia" in d.getVar("MACHINE_FEATURES", True).split(" "):
         d.setVarFlag("WESTONSECTION", "WESTONV4L2RENDERER", "v4l2-renderer")
 }
+
+do_generate_weston_init[vardeps] += "WESTONIVISHELL WESTONV4L2RENDERER"
index 7a54dfb..4a04948 100644 (file)
@@ -3,3 +3,5 @@ WESTONOUTPUT2[name] = "LVDS-1"
 WESTONOUTPUT2[mode] = "off"
 
 WESTONSECTION[WESTONOUTPUT2] = "output"
+
+do_generate_weston_init[vardeps] += "WESTONOUTPUT2"
index ec658ce..eb30a9a 100644 (file)
@@ -1,9 +1,5 @@
 #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 generate the weston.ini file:
 
 '''
index 986a9ed..c7eee62 100644 (file)
@@ -50,6 +50,7 @@ python do_generate_weston_init() {
 #ar_src = d.getVarFlag('ARCHIVER_MODE', 'src', True)
 
 addtask do_generate_weston_init after do_compile before do_install
+do_generate_weston_init[vardeps] = "DEFAULT_SCREEN WESTONCORE WESTONSHELL WESTONOUTPUT1 WESTONSECTION"
 
 do_install_append() {
     WESTON_INI_CONFIG=${sysconfdir}/xdg/weston
index d82b180..846e059 100644 (file)
@@ -2,3 +2,5 @@ SCREEN_GECHIC[name] ?= "HDMI-A-1"
 SCREEN_GECHIC[transform] ?= "270"
 # for 1080p on GeChic 1502i:
 SCREEN_GECHIC[mode] = "173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync"
+
+do_generate_weston_init[vardeps] += "SCREEN_GECHIC"
index 76dd8b8..c7f3abe 100644 (file)
@@ -14,3 +14,5 @@ SCREEN_QEMU[mode]?="1600x900"
 #mode=800x600
 #mode=848x480
 #mode=640x480
+
+do_generate_weston_init[vardeps] += "SCREEN_QEMU"