From: Michael Tremer Date: Wed, 12 Apr 2017 10:07:33 +0000 (+0100) Subject: Support building for armv7hl X-Git-Tag: v2.19-core112~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4162dbaef183234fc0651afb70cf8839dc8fb113;p=people%2Fstevee%2Fipfire-2.x.git Support building for armv7hl Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index beaee1eeb3..fc1a02b33f 100755 --- 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. ;; diff --git a/tools/make-functions b/tools/make-functions index 78edf7d536..dc17171c11 100644 --- a/tools/make-functions +++ b/tools/make-functions @@ -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" ;;