mirror of https://github.com/thesofproject/sof.git
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:
parent
bd918ada7f
commit
7c0f032266
|
@ -370,6 +370,14 @@ see https://docs.zephyrproject.org/latest/getting_started/index.html"
|
||||||
ln -s "$SOF_TOP" "${WEST_TOP}"/modules/audio/sof
|
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
|
# FIXME: remove this hack. Downloading and building should be
|
||||||
# kept separate but support for submodules in west is too
|
# kept separate but support for submodules in west is too
|
||||||
# recent, cannot rely on it yet.
|
# 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
|
git submodule update --init --recursive
|
||||||
)
|
)
|
||||||
|
|
||||||
test "${#PLATFORMS[@]}" -eq 0 || build_all
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
main "$@"
|
main "$@"
|
||||||
|
|
Loading…
Reference in New Issue