mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 07:31:01 +02:00
Merge pull request #394 from marineam/arm64
update_chroot: fail if --toolchain_boards= was given invalid names
This commit is contained in:
commit
83bfa8f4f6
@ -188,6 +188,8 @@ gcc_set_latest_profile "$(portageq envvar CHOST)"
|
|||||||
if [[ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" && \
|
if [[ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" && \
|
||||||
-n "${FLAGS_toolchain_boards}" ]]; then
|
-n "${FLAGS_toolchain_boards}" ]]; then
|
||||||
CROSS_CHOSTS=( $(get_board_chost ${FLAGS_toolchain_boards} | sort -u) )
|
CROSS_CHOSTS=( $(get_board_chost ${FLAGS_toolchain_boards} | sort -u) )
|
||||||
|
# double check get_board_chost actually returned results, pipefail isn't set.
|
||||||
|
[[ -n "${CROSS_CHOSTS[*]}" ]] || exit 1
|
||||||
|
|
||||||
for cross_chost in "${CROSS_CHOSTS[@]}"; do
|
for cross_chost in "${CROSS_CHOSTS[@]}"; do
|
||||||
info "Updating cross ${cross_chost} toolchain"
|
info "Updating cross ${cross_chost} toolchain"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user