]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Support building for armv7hl
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Apr 2017 10:07:33 +0000 (11:07 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 May 2017 11:01:07 +0000 (12:01 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh
tools/make-functions

diff --git a/make.sh b/make.sh
index beaee1eeb3059705f2eb0656f63e81141400290c..fc1a02b33f5074c27456cc48aa934be0a1eb8e82 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -260,6 +260,10 @@ buildtoolchain() {
             ;;
 
         # ARM
+        arvm7hl:armv7hl|armv7hl:armv7l)
+            # These are working.
+            ;;
+
         armv5tel:armv5tel|armv5tel:armv5tejl|armv5tel:armv6l|armv5tel:armv7l|armv5tel:aarch64)
             # These are working.
             ;;
index 78edf7d536d69df1995e5b1838cdd9228a23baf5..dc17171c113e0aaae4fbd32e65cf73e9b49ea136 100644 (file)
@@ -86,6 +86,12 @@ configure_target() {
                        CFLAGS_ARCH=""
                        ;;
 
+               armv7hl)
+                       BUILDTARGET="${target_arch}-unknown-linux-gnueabi"
+                       CROSSTARGET="${target_arch}-cross-linux-gnueabi"
+                       CFLAGS_ARCH="-march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard -mthumb"
+                       ;;
+
                armv5tel)
                        BUILDTARGET="${target_arch}-unknown-linux-gnueabi"
                        CROSSTARGET="${target_arch}-cross-linux-gnueabi"
@@ -131,9 +137,14 @@ configure_target_guess() {
                        echo "aarch64"
                        ;;
 
-               armv7*|armv6*|armv5*)
+               armv7*)
+                       echo "armv7hl"
+                       ;;
+
+               armv6*|armv5*)
                        echo "armv5tel"
                        ;;
+
                *)
                        exiterror "Cannot guess target architecture"
                        ;;