From 8056f5a6dd7261eb5d1ca243e4bb4af2ec7f5203 Mon Sep 17 00:00:00 2001 From: Andrew Jeddeloh Date: Fri, 23 Aug 2019 20:51:02 +0000 Subject: [PATCH] setup_board: add workaround for binutils issue Add a workaround to be sure we're using the correct binutils when SDK sharing. In this case we want the old binutils, not the new one. --- setup_board | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup_board b/setup_board index 73a8b8cb73..e68ced5e5a 100755 --- a/setup_board +++ b/setup_board @@ -339,6 +339,11 @@ if [ $FLAGS_default -eq $FLAGS_TRUE ] ; then echo $BOARD_VARIANT > "$GCLIENT_ROOT/src/scripts/.default_board" fi +# workaround for https://wiki.gentoo.org/wiki/Binutils_2.32_upgrade_notes/elfutils_0.175:_unable_to_initialize_decompress_status_for_section_.debug_info +# Sets the binutils back to the correct version for beta in case alpha/master messed with it when sharing SDKs. +sudo binutils-config 'x86_64-cros-linux-gnu-2.31.1' +sudo binutils-config 'x86_64-pc-linux-gnu-2.31.1' + command_completed info "The SYSROOT is: ${BOARD_ROOT}"