Support building for armv7hl

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-04-12 11:07:33 +01:00
parent 6ef98fe9be
commit 4162dbaef1
2 changed files with 16 additions and 1 deletions

View File

@@ -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.
;;

View 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"
;;