From 454364ccb8c14738f88b7b51c26258c548a17305 Mon Sep 17 00:00:00 2001 From: Alper Nebi Yasak Date: Thu, 25 Aug 2022 20:28:22 +0300 Subject: 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(+) (limited to 'resources/scripts') diff --git a/resources/scripts/download/u-boot b/resources/scripts/download/u-boot index 4e5a77c0..86be55b9 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() -- cgit v1.2.1