Merge "configure: support hardfloat armv7 CHOSTS"

This commit is contained in:
Johann 2013-01-10 10:56:28 -08:00 committed by Gerrit Code Review
commit 8aca351926

View File

@ -597,8 +597,13 @@ process_common_toolchain() {
armv6*)
tgt_isa=armv6
;;
armv7*-hardfloat*)
tgt_isa=armv7
float_abi=hard
;;
armv7*)
tgt_isa=armv7
float_abi=softfp
;;
armv5te*)
tgt_isa=armv5te
@ -787,8 +792,9 @@ process_common_toolchain() {
check_add_asflags --defsym ARCHITECTURE=${arch_int}
tune_cflags="-mtune="
if [ ${tgt_isa} == "armv7" ]; then
check_add_cflags -march=armv7-a -mfloat-abi=softfp
check_add_asflags -march=armv7-a -mfloat-abi=softfp
[ -z "${float_abi}" ] && float_abi=softfp
check_add_cflags -march=armv7-a -mfloat-abi=${float_abi}
check_add_asflags -march=armv7-a -mfloat-abi=${float_abi}
if enabled neon
then