From 5c6d462611f6dea524918c00916b4903d44a1099 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Thu, 25 Aug 2022 20:28:22 +0300 Subject: [PATCH] download/u-boot: Try to update submodules as in coreboot script The coreboot download script tries to update submodules, since coreboot does use git submodules to retrieve and compile the projects it depends on. Although U-Boot doesn't use submodules, try to update them anyway to match the coreboot download script. Signed-off-by: Alper Nebi Yasak --- resources/scripts/download/u-boot | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot index 4e5a77c..86be55b 100755 --- a/resources/scripts/download/u-boot +++ b/resources/scripts/download/u-boot @@ -162,6 +162,13 @@ downloadfor() { "download/u-boot" "${ubrevision}" "${board}" "${ubtree}" return 1 fi + + git -C "${ubtree}" submodule update --init || touch build_error + if [ -f build_error ]; then + printf "ERROR: %s: Unable to update submodules for tree '%s'\n" \ + "${ubtree}" + return 1 + fi } strip_comments()