From a9043f5a99dd70ce54f3b0a1a46e64ee5286555b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 19 Feb 2012 02:20:25 -0500 Subject: [PATCH] setup_board: skip arm-none-eabi when copying glibc binpkgs The arm-none-eabi toolchain doesn't use glibc, so trying to copy the glibc binpkg won't work. BUG=None TEST=`cbuildbot chromiumos-sdk` passes Change-Id: I47d420fa18466128fa319f15702d4864e5f7dce0 Reviewed-on: https://gerrit.chromium.org/gerrit/16225 Reviewed-by: Zdenek Behan Commit-Ready: Mike Frysinger Tested-by: Mike Frysinger --- setup_board | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/setup_board b/setup_board index 5d8c44b223..fdd4272335 100755 --- a/setup_board +++ b/setup_board @@ -679,11 +679,14 @@ if ${HOST_BOARD}; then TARGETS=$(sed 's:#.*::' $(printf '%s/toolchain.conf ' ${ALL_OVERLAYS}) \ 2>/dev/null | sort -u) for target in ${TARGETS}; do - # Install needed glibc tarball. - cross_target_path=/var/lib/portage/pkgs/cross-$target - if [[ -e "$cross_target_path" ]] ; then - sudo mkdir -p ${BOARD_ROOT}$cross_target_path - sudo cp -a ${cross_target_path}/glibc-* ${BOARD_ROOT}$cross_target_path + if [[ "${target}" != "arm-none-eabi" ]] ; then + # Install needed glibc tarball. + cross_target_path=/var/lib/portage/pkgs/cross-${target} + if [[ -e "$cross_target_path" ]] ; then + sudo mkdir -p ${BOARD_ROOT}${cross_target_path} + sudo cp -a ${cross_target_path}/glibc-* \ + ${BOARD_ROOT}${cross_target_path} + fi fi CURRENT_GCC="$(gcc-config -c ${target})"