From 500fe74856fe99af08c60ae25ba3564b4f01a136 Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 6 Nov 2013 18:04:26 -0800 Subject: [PATCH] fix(setup_board): Move to new toolchain_util.sh and eselect The new toolchain utils define chost, portage profiles, and portage arch per board. Replace the tricker logic from the old platform/dev repo and switch to setting the profile with the standard eselect tool. A few cleanups here and there, replacing echo with info and renames. --- setup_board | 88 ++++++++++++----------------------------------------- 1 file changed, 19 insertions(+), 69 deletions(-) diff --git a/setup_board b/setup_board index 99cf25fbfe..2badc3fff5 100755 --- a/setup_board +++ b/setup_board @@ -5,7 +5,7 @@ # found in the LICENSE file. . "$(dirname "$0")/common.sh" || exit 1 -. "${SRC_ROOT}/platform/dev/toolchain_utils.sh" +. "${BUILD_LIBRARY_DIR}/toolchain_util.sh" || exit 1 # Script must run inside the chroot restart_in_chroot_if_needed "$@" @@ -47,16 +47,12 @@ DEFINE_boolean latest_toolchain $FLAGS_FALSE \ kernel). This overrides the other toolchain version options." DEFINE_string libc_version "[stable]" \ "Version of libc to use." -DEFINE_string profile "" \ - "The portage configuration profile to use. Profile must be located in overlay-board/profiles" DEFINE_boolean quiet $FLAGS_FALSE \ "Don't print warnings when board already exists." DEFINE_boolean skip_toolchain_update $FLAGS_FALSE \ "Don't update toolchain automatically." DEFINE_boolean skip_chroot_upgrade $FLAGS_FALSE \ "Don't run the chroot upgrade automatically; use with care." -DEFINE_string toolchain "" \ - "Toolchain. For example: i686-pc-linux-gnu, armv7a-softfloat-linux-gnueabi" DEFINE_string variant "" \ "Board variant." DEFINE_boolean regen_configs ${FLAGS_FALSE} \ @@ -77,10 +73,8 @@ _generate_wrapper() { sudo_clobber "${target}" <