meta-agl-bsp: meta-sancloud: weston-ini-conf: Fix resolution for cluster demo 61/20561/2
authorPaul Barker <paul.barker@sancloud.co.uk>
Tue, 12 Mar 2019 11:19:34 +0000 (11:19 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 15 Mar 2019 13:10:58 +0000 (13:10 +0000)
If the 'hdmi-a-1-270.cfg' file has been removed (for example, when
building the cluster demo) then don't try to modify it.

Change-Id: I0cfcf21803eedd451d1ff160cc5b6d5950a1ab79
Signed-off-by: Paul Barker <paul.barker@sancloud.co.uk>
meta-agl-bsp/meta-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend

index 9ab46c8..e737b54 100644 (file)
@@ -1,4 +1,6 @@
 do_configure_append_bbe() {
     echo 'gbm-format=rgb565' >> ${WORKDIR}/core.cfg
-    echo 'mode=1280x720' >> ${WORKDIR}/hdmi-a-1-270.cfg
+    if [[ -e "${WORKDIR}/hdmi-a-1-270.cfg" ]]; then
+        echo 'mode=1280x720' >> ${WORKDIR}/hdmi-a-1-270.cfg
+    fi
 }