Module: Mesa
Branch: main
Commit: f97e065c4f72856eccefcbf7dbe72253a6918294
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=f97e065c4f72856eccefcbf7dbe72253a6918294

Author: Juan A. Suarez Romero <jasua...@igalia.com>
Date:   Wed Dec  6 12:39:49 2023 +0100

ci/baremetal: make BM_BOOTCONFIG optional

In some cases we can have the config.txt boot file already available in
the tftp folder.

Reviewed-by: Eric Engestrom <e...@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasua...@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26552>

---

 .gitlab-ci/bare-metal/poe-powered.sh | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/.gitlab-ci/bare-metal/poe-powered.sh 
b/.gitlab-ci/bare-metal/poe-powered.sh
index 6043e207df0..d833a002db4 100755
--- a/.gitlab-ci/bare-metal/poe-powered.sh
+++ b/.gitlab-ci/bare-metal/poe-powered.sh
@@ -70,11 +70,6 @@ if [ -z "$BM_CMDLINE" ]; then
   exit 1
 fi
 
-if [ -z "$BM_BOOTCONFIG" ]; then
-  echo "Must set BM_BOOTCONFIG to your board's required boot configuration 
arguments"
-  exit 1
-fi
-
 set -ex
 
 date +'%F %T'
@@ -180,8 +175,10 @@ date +'%F %T'
 
 echo "$BM_CMDLINE" > /tftp/cmdline.txt
 
-# Add some required options in config.txt
-printf "$BM_BOOTCONFIG" >> /tftp/config.txt
+# Add some options in config.txt, if defined
+if [ -n "$BM_BOOTCONFIG" ]; then
+  printf "$BM_BOOTCONFIG" >> /tftp/config.txt
+fi
 
 set +e
 ATTEMPTS=3

Reply via email to