blob: 9a05dd790f4e9f5fdc3ef5ff07bc06efecfa3ac2 [file] [log] [blame]
# 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 --one-file-system ${build}.softfp"
sudo mv ${build}{,.softfp}
info "Running setup_board --board=${board}"
~/trunk/src/scripts/setup_board \
--board=${board} \
--skip_chroot_upgrade
fi
done