Merge pull request #394 from marineam/arm64

update_chroot: fail if --toolchain_boards= was given invalid names
This commit is contained in:
Michael Marineau 2015-04-08 19:14:32 -07:00
commit 83bfa8f4f6

View File

@ -188,6 +188,8 @@ gcc_set_latest_profile "$(portageq envvar CHOST)"
if [[ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" && \
-n "${FLAGS_toolchain_boards}" ]]; then
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
info "Updating cross ${cross_chost} toolchain"