mirror of
https://git.savannah.gnu.org/git/gnuboot.git
synced 2025-01-22 07:16:31 +01:00
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 <alpernebiyasak@gmail.com>
This commit is contained in:
parent
8803355a8f
commit
5c6d462611
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue