Commit cda5f992 authored by John Koleszar's avatar John Koleszar Committed by Gerrit Code Review
Browse files

Merge "configure: arm: Check __ARM_PCS_VFP if the float ABI hasn't been defined"

Showing with 7 additions and 1 deletion
...@@ -793,7 +793,13 @@ process_common_toolchain() { ...@@ -793,7 +793,13 @@ process_common_toolchain() {
check_add_asflags --defsym ARCHITECTURE=${arch_int} check_add_asflags --defsym ARCHITECTURE=${arch_int}
tune_cflags="-mtune=" tune_cflags="-mtune="
if [ ${tgt_isa} == "armv7" ]; then if [ ${tgt_isa} == "armv7" ]; then
[ -z "${float_abi}" ] && float_abi=softfp if [ -z "${float_abi}" ]; then
check_cpp <<EOF && float_abi=hard || float_abi=softfp
#ifndef __ARM_PCS_VFP
#error "not hardfp"
#endif
EOF
fi
check_add_cflags -march=armv7-a -mfloat-abi=${float_abi} check_add_cflags -march=armv7-a -mfloat-abi=${float_abi}
check_add_asflags -march=armv7-a -mfloat-abi=${float_abi} check_add_asflags -march=armv7-a -mfloat-abi=${float_abi}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment