summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-01-10 05:13:57 +0100
committerLuca Barbato <lu_zero@gentoo.org>2013-01-10 06:00:48 +0100
commitaf9dd50e42e0a7558d0d555ee12a1eb60e87a458 (patch)
tree0285ead07f151454bc11c94a29f5de8e5ee58100
parent27825e9e3a70c1d71c2bdea5bd44bf7b4bbb1824 (diff)
downloadlibvpx-af9dd50e42e0a7558d0d555ee12a1eb60e87a458.tar
libvpx-af9dd50e42e0a7558d0d555ee12a1eb60e87a458.tar.gz
libvpx-af9dd50e42e0a7558d0d555ee12a1eb60e87a458.tar.bz2
libvpx-af9dd50e42e0a7558d0d555ee12a1eb60e87a458.zip
configure: support hardfloat armv7 CHOSTS
Many linux distribution for arm switched to armhf/hardfloat, support them. Change-Id: I8ab39d34782b4f24b7028ac76342118166fd5905
-rwxr-xr-xbuild/make/configure.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index e27af9641..f69b6d7cf 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -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
@@ -784,8 +789,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