xtensa-build-zephyr: extract new download_missing_submodules() function

This makes testing submodule issues easier.

Absolutely zero functional change.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2021-10-15 02:43:51 +00:00 committed by Liam Girdwood
parent bd918ada7f
commit 7c0f032266
1 changed files with 9 additions and 2 deletions

View File

@ -370,6 +370,14 @@ see https://docs.zephyrproject.org/latest/getting_started/index.html"
ln -s "$SOF_TOP" "${WEST_TOP}"/modules/audio/sof
}
download_missing_submodules
test "${#PLATFORMS[@]}" -eq 0 || build_all
}
download_missing_submodules()
{
# FIXME: remove this hack. Downloading and building should be
# kept separate but support for submodules in west is too
# recent, cannot rely on it yet.
@ -388,8 +396,7 @@ see https://docs.zephyrproject.org/latest/getting_started/index.html"
git submodule update --init --recursive
)
test "${#PLATFORMS[@]}" -eq 0 || build_all
}
main "$@"