mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
setup_board: switch over to cros_setup_toolchains for toolchain listing
We want to centralize toolchain.conf parsing in cros_setup_toolchains. BUG=None TEST=`cbuildbot chromiumos-sdk` worked Change-Id: I650616725595388515c8b1acbf7479b9ddcdd44e Reviewed-on: https://gerrit.chromium.org/gerrit/24334 Reviewed-by: Zdenek Behan <zbehan@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
654a00bd61
commit
db0a3903d1
@ -553,10 +553,8 @@ if ${HOST_BOARD}; then
|
||||
# The new chroot should have gcc for each target. Make sure that
|
||||
# the latest one is correctly selected. Ignore cat errors as not
|
||||
# all overlays will have a toolchain.conf.
|
||||
ALL_OVERLAYS=$(cros_overlay_list --all_boards)
|
||||
TARGETS=$(sed 's:#.*::' $(printf '%s/toolchain.conf ' ${ALL_OVERLAYS}) \
|
||||
2>/dev/null | sort -u)
|
||||
for target in ${TARGETS}; do
|
||||
ALL_TARGETS=$(cros_setup_toolchains --show-board-cfg=all)
|
||||
for target in ${ALL_TARGETS//,/ }; do
|
||||
libc=$(eval $(crossdev --show-target-cfg "${target}"); echo ${libc_pn})
|
||||
if [[ ${libc} == "glibc" ]] ; then
|
||||
# Install needed glibc tarball.
|
||||
|
Loading…
Reference in New Issue
Block a user