git.sh fix: only download submodules for coreboot
In practise, both cbmk and lbmk only need coreboot submodules, but the pico sources download them too, and some of them may not be FSDG compatible. So, this change will be Canoeboot-specific, and only download submodules for coreboot as a result. The required submodules are defined already in config/git, so pico-serprog and stm32-vserprog will work just fine. To be sure: this patch restores behaviour from Canoeboot at release 20231107. Canoeboot inherited some improvements from lbmk and I forgot to adapt the code for this. This behaviour is intentional, as part of Canoeboot's design. Signed-off-by: Leah Rowe <info@minifree.org>audit2-merge1
parent
b64cab53eb
commit
8ddb1c7885
|
@ -104,7 +104,7 @@ git_prep()
|
|||
git -C "$tmpgit" reset --hard $rev || $err "git -C $_loc: !reset $rev"
|
||||
git_am_patches "$tmpgit" "$_patchdir" || $err "!am $_loc $_patchdir"
|
||||
|
||||
if [ "$project" != "coreboot" ] || [ $# -gt 2 ]; then
|
||||
if [ "$project" = "coreboot" ] && [ $# -gt 2 ]; then
|
||||
[ ! -f "$tmpgit/.gitmodules" ] || git -C "$tmpgit" submodule \
|
||||
update --init || $err "git_prep $_loc: !submod"
|
||||
if [ "$project" = "coreboot" ] && [ -n "$xtree" ] && \
|
||||
|
|
Loading…
Reference in New Issue