mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Now that the new compiler has been published, there is no need to use nousepkg anymore. So we can remove this to speed up builds for folks who are upgrading. BUG=none TEST=Remote trybot run to verify tegra2 toolchain is still upgraded to hardfp. Change-Id: Iad08114f971c6a9e1a84b1101b25ae60e8822751 Reviewed-on: https://gerrit.chromium.org/gerrit/22406 Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Brian Harring <ferringb@chromium.org> Commit-Ready: David James <davidjames@chromium.org> Tested-by: David James <davidjames@chromium.org>
27 lines
879 B
Plaintext
27 lines
879 B
Plaintext
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# For people who have arm builds with softfp, automatically move them
|
|
# away so we can deploy them with hardfp.
|
|
# See also 29_64bit_convert_stumpy.
|
|
|
|
# In case the dev has no arm boards.
|
|
shopt -s nullglob
|
|
|
|
for ldso in /build/*/lib/ld-linux.so.3; do
|
|
# See if this is an ARM softfp ldso.
|
|
if ! readelf -A "${ldso}" | grep -q Tag_ABI_VFP_args; then
|
|
build=${ldso%/lib/*}
|
|
board=${build##*/}
|
|
info "Migrating ${board} to ${board}.softfp"
|
|
info "If you don't need it, please run "
|
|
info "sudo rm -rf ${build}.softfp"
|
|
sudo mv ${build}{,.softfp}
|
|
info "Running setup_board --board=${board}"
|
|
~/trunk/src/scripts/setup_board \
|
|
--board=${board} \
|
|
--skip_chroot_upgrade
|
|
fi
|
|
done
|