2019-03-06 02:03:41 +00:00
|
|
|
From 2cc3f6718e1ca9a16007b944032137891b64b51d Mon Sep 17 00:00:00 2001
|
2017-01-15 19:15:49 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Sun, 15 Jan 2017 12:11:57 -0700
|
|
|
|
Subject: [PATCH] ARM fixes
|
|
|
|
|
|
|
|
---
|
|
|
|
build/make/configure.sh | 21 +++++++++++----------
|
|
|
|
configure | 2 ++
|
|
|
|
2 files changed, 13 insertions(+), 10 deletions(-)
|
|
|
|
|
2015-04-21 11:57:20 +00:00
|
|
|
diff --git a/build/make/configure.sh b/build/make/configure.sh
|
2019-03-06 02:03:41 +00:00
|
|
|
index 00214c9d2e..865c338265 100644
|
2015-04-21 11:57:20 +00:00
|
|
|
--- a/build/make/configure.sh
|
|
|
|
+++ b/build/make/configure.sh
|
2019-03-06 02:03:41 +00:00
|
|
|
@@ -740,6 +740,14 @@ process_common_toolchain() {
|
2016-08-05 00:03:30 +00:00
|
|
|
aarch64*)
|
|
|
|
tgt_isa=arm64
|
|
|
|
;;
|
2017-01-15 19:15:49 +00:00
|
|
|
+ armv5te*)
|
|
|
|
+ tgt_isa=armv5te
|
|
|
|
+ float_abi=soft
|
|
|
|
+ ;;
|
2015-04-21 11:57:20 +00:00
|
|
|
+ armv6*-gnueabihf)
|
|
|
|
+ tgt_isa=armv6
|
|
|
|
+ float_abi=hard
|
|
|
|
+ ;;
|
2017-01-15 19:15:49 +00:00
|
|
|
armv7*-hardfloat* | armv7*-gnueabihf | arm-*-gnueabihf)
|
2015-04-21 11:57:20 +00:00
|
|
|
tgt_isa=armv7
|
2017-01-15 19:15:49 +00:00
|
|
|
float_abi=hard
|
2019-03-06 02:03:41 +00:00
|
|
|
@@ -964,7 +972,7 @@ process_common_toolchain() {
|
2015-04-21 12:40:23 +00:00
|
|
|
soft_enable neon
|
|
|
|
;;
|
|
|
|
armv7|armv7s)
|
|
|
|
- soft_enable neon
|
|
|
|
+ #soft_enable neon
|
|
|
|
# Only enable neon_asm when neon is also enabled.
|
|
|
|
enabled neon && soft_enable neon_asm
|
|
|
|
# If someone tries to force it through, die.
|
2019-03-06 02:03:41 +00:00
|
|
|
@@ -984,13 +992,6 @@ process_common_toolchain() {
|
|
|
|
arch_int=${arch_int%%te}
|
2015-04-21 11:57:20 +00:00
|
|
|
tune_cflags="-mtune="
|
|
|
|
if [ ${tgt_isa} = "armv7" ] || [ ${tgt_isa} = "armv7s" ]; then
|
|
|
|
- if [ -z "${float_abi}" ]; then
|
|
|
|
- check_cpp <<EOF && float_abi=hard || float_abi=softfp
|
2013-12-07 21:39:15 +00:00
|
|
|
-#ifndef __ARM_PCS_VFP
|
|
|
|
-#error "not hardfp"
|
|
|
|
-#endif
|
|
|
|
-EOF
|
2015-04-21 11:57:20 +00:00
|
|
|
- fi
|
|
|
|
check_add_cflags -march=armv7-a -mfloat-abi=${float_abi}
|
|
|
|
check_add_asflags -march=armv7-a -mfloat-abi=${float_abi}
|
2013-12-07 21:39:15 +00:00
|
|
|
|
2019-03-06 02:03:41 +00:00
|
|
|
@@ -1002,8 +1003,8 @@ EOF
|
2016-08-05 00:03:30 +00:00
|
|
|
check_add_cflags -march=armv8-a
|
|
|
|
check_add_asflags -march=armv8-a
|
2015-04-21 11:57:20 +00:00
|
|
|
else
|
2015-04-21 12:40:23 +00:00
|
|
|
- check_add_cflags -march=${tgt_isa}
|
|
|
|
- check_add_asflags -march=${tgt_isa}
|
2015-04-21 11:57:20 +00:00
|
|
|
+ check_add_cflags -march=${tgt_isa} -mfloat-abi=${float_abi}
|
|
|
|
+ check_add_asflags -march=${tgt_isa} -mfloat-abi=${float_abi}
|
|
|
|
fi
|
2015-04-21 12:40:23 +00:00
|
|
|
|
|
|
|
enabled debug && add_asflags -g
|
|
|
|
diff --git a/configure b/configure
|
2019-03-06 02:03:41 +00:00
|
|
|
index 6204f10b6c..009fe8cbbe 100755
|
2015-04-21 12:40:23 +00:00
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2019-03-06 02:03:41 +00:00
|
|
|
@@ -103,6 +103,8 @@ all_platforms="${all_platforms} arm64-darwin-gcc"
|
2016-08-05 00:03:30 +00:00
|
|
|
all_platforms="${all_platforms} arm64-linux-gcc"
|
2019-03-06 02:03:41 +00:00
|
|
|
all_platforms="${all_platforms} arm64-win64-gcc"
|
|
|
|
all_platforms="${all_platforms} arm64-win64-vs15"
|
2017-01-15 19:15:49 +00:00
|
|
|
+all_platforms="${all_platforms} armv5te-linux-gcc"
|
|
|
|
+all_platforms="${all_platforms} armv6-linux-gcc"
|
|
|
|
all_platforms="${all_platforms} armv7-android-gcc" #neon Cortex-A8
|
|
|
|
all_platforms="${all_platforms} armv7-darwin-gcc" #neon Cortex-A8
|
|
|
|
all_platforms="${all_platforms} armv7-linux-rvct" #neon Cortex-A8
|
|
|
|
--
|
2019-03-06 02:03:41 +00:00
|
|
|
2.21.0
|
2017-01-15 19:15:49 +00:00
|
|
|
|