From 26cc17a952e6aad00b9b89271bb6753b2c501aae Mon Sep 17 00:00:00 2001
From: Paul Barker <paul.barker@sancloud.co.uk>
Date: Tue, 12 Mar 2019 11:19:34 +0000
Subject: meta-agl-bsp: meta-sancloud: weston-ini-conf: Fix resolution for
 cluster demo

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-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'meta-agl-bsp/meta-sancloud/recipes-graphics/wayland')

diff --git a/meta-agl-bsp/meta-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend b/meta-agl-bsp/meta-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend
index 9ab46c826..e737b540a 100644
--- a/meta-agl-bsp/meta-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend
+++ b/meta-agl-bsp/meta-sancloud/recipes-graphics/wayland/weston-ini-conf.bbappend
@@ -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
 }
-- 
cgit 1.2.3-korg