meta-agl-core: update weston-ini-conf
authorScott Murray <scott.murray@konsulko.com>
Tue, 23 Feb 2021 21:28:01 +0000 (16:28 -0500)
committerScott Murray <scott.murray@konsulko.com>
Tue, 29 Mar 2022 19:23:32 +0000 (15:23 -0400)
Update weston-ini-conf recipe to handle weston 9.0 in poky master.
The changes are to handle the flip of the meaning of 90 and 270
degree rotations in the transform option in weston.ini, and the
rename of its values to "rotate-X" instead of just the number of
degrees.

Bug-AGL: SPEC-3819

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I2bb316a195f7eb3733ff757a565535317db1da08

meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bb
meta-agl-core/recipes-graphics/wayland/weston-ini-conf.bbappend
meta-agl-core/recipes-graphics/wayland/weston-ini-conf/hdmi-a-1-180.cfg
meta-agl-core/recipes-graphics/wayland/weston-ini-conf/hdmi-a-1-270.cfg
meta-agl-core/recipes-graphics/wayland/weston-ini-conf/hdmi-a-1-90.cfg
meta-agl-core/recipes-graphics/wayland/weston-ini-conf/virtual-180.cfg
meta-agl-core/recipes-graphics/wayland/weston-ini-conf/virtual-270.cfg
meta-agl-core/recipes-graphics/wayland/weston-ini-conf/virtual-90.cfg [new file with mode: 0644]

index c635d7b..c04ff65 100644 (file)
@@ -12,6 +12,7 @@ SRC_URI = " \
        file://remote-output.cfg \
        file://transmitter-output.cfg.in \
        file://virtual-0.cfg \
+       file://virtual-90.cfg \
        file://virtual-180.cfg \
        file://virtual-270.cfg \
 "
@@ -21,7 +22,7 @@ S = "${WORKDIR}"
 inherit update-alternatives
 
 # Default primary display/orientation fragment
-WESTON_DISPLAYS ?= "hdmi-a-1-270"
+WESTON_DISPLAYS ?= "hdmi-a-1-90"
 
 # Configuration fragments to use in weston.ini.*
 # Note that some may be replaced/removed when building the landscape
@@ -63,7 +64,7 @@ do_compile() {
         if echo $F | grep '^hdmi-a-1-\(90\|270\)$'; then
             F="hdmi-a-1-0"
             INVF="hdmi-a-1-180"
-        elif echo $F | grep '^virtual-270$'; then
+        elif echo $F | grep '^virtual-90$'; then
             F="virtual-0"
             INVF="virtual-180"
         fi
index c4cf6c1..d441d65 100644 (file)
@@ -8,5 +8,5 @@ WESTON_DISPLAYS:append = "${@bb.utils.contains("AGL_FEATURES", "waltham-remoting
 # For virtual machines and intel-corei7-64 we want to support both the HDMI-A-1
 # and Virtual-1 outputs. This allows us to run virtual images on real hardware
 # and vice versa.
-WESTON_DISPLAYS:append:qemuall = " virtual-270"
-WESTON_DISPLAYS:append:intel-corei7-64 = " virtual-270"
+WESTON_DISPLAYS:append:qemuall = " virtual-90"
+WESTON_DISPLAYS:append:intel-corei7-64 = " virtual-90"
diff --git a/meta-agl-core/recipes-graphics/wayland/weston-ini-conf/virtual-90.cfg b/meta-agl-core/recipes-graphics/wayland/weston-ini-conf/virtual-90.cfg
new file mode 100644 (file)
index 0000000..96d9c3a
--- /dev/null
@@ -0,0 +1,4 @@
+[output]
+name=Virtual-1
+mode=1920x1080
+transform=rotate-90