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.
This commit is contained in:
Andrew Jeddeloh 2019-08-23 20:51:02 +00:00
parent 5d0af879ae
commit 8056f5a6dd

View File

@ -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}"