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:
Mike Frysinger 2012-06-01 16:35:07 -04:00 committed by Gerrit
parent 654a00bd61
commit db0a3903d1

View File

@ -553,10 +553,8 @@ if ${HOST_BOARD}; then
# The new chroot should have gcc for each target. Make sure that # The new chroot should have gcc for each target. Make sure that
# the latest one is correctly selected. Ignore cat errors as not # the latest one is correctly selected. Ignore cat errors as not
# all overlays will have a toolchain.conf. # all overlays will have a toolchain.conf.
ALL_OVERLAYS=$(cros_overlay_list --all_boards) ALL_TARGETS=$(cros_setup_toolchains --show-board-cfg=all)
TARGETS=$(sed 's:#.*::' $(printf '%s/toolchain.conf ' ${ALL_OVERLAYS}) \ for target in ${ALL_TARGETS//,/ }; do
2>/dev/null | sort -u)
for target in ${TARGETS}; do
libc=$(eval $(crossdev --show-target-cfg "${target}"); echo ${libc_pn}) libc=$(eval $(crossdev --show-target-cfg "${target}"); echo ${libc_pn})
if [[ ${libc} == "glibc" ]] ; then if [[ ${libc} == "glibc" ]] ; then
# Install needed glibc tarball. # Install needed glibc tarball.