mirror of
https://git.freebsd.org/ports.git
synced 2025-06-16 18:20:33 -04:00
Add support for armv7-*-freebsd*.
This patch is already upstreamed, it can be dropped when a new GCC 7.x is available. PR: 221905 Approved by: gerald@ (maintainer)
This commit is contained in:
parent
7ead1eb866
commit
21bc93e34b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=451719
2 changed files with 23 additions and 2 deletions
|
@ -14,7 +14,7 @@ COMMENT= GNU Compiler Collection 7
|
||||||
LICENSE= GPLv3 GPLv3RLE
|
LICENSE= GPLv3 GPLv3RLE
|
||||||
LICENSE_COMB= multi
|
LICENSE_COMB= multi
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 i386 powerpc powerpc64 sparc64
|
ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64
|
||||||
|
|
||||||
LIB_DEPENDS= libgmp.so:math/gmp \
|
LIB_DEPENDS= libgmp.so:math/gmp \
|
||||||
libmpfr.so:math/mpfr \
|
libmpfr.so:math/mpfr \
|
||||||
|
@ -62,7 +62,7 @@ CONFIGURE_ENV+= UNAME_m="powerpc64"
|
||||||
USE_GCC= yes
|
USE_GCC= yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${ARCH} == armv6
|
.if ${ARCH} == armv6 || ${ARCH} == armv7
|
||||||
. if ${COMPILER_TYPE} == clang
|
. if ${COMPILER_TYPE} == clang
|
||||||
. if empty(PORT_OPTIONS:MBOOTSTRAP)
|
. if empty(PORT_OPTIONS:MBOOTSTRAP)
|
||||||
MAKE_ARGS+=CXXFLAGS+=-fbracket-depth=512
|
MAKE_ARGS+=CXXFLAGS+=-fbracket-depth=512
|
||||||
|
|
21
lang/gcc7/files/patch-armv7-support
Normal file
21
lang/gcc7/files/patch-armv7-support
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
---UTC
|
||||||
|
Index: gcc/config.gcc
|
||||||
|
===================================================================
|
||||||
|
--- gcc/config.gcc (revision 253513)
|
||||||
|
+++ gcc/config.gcc (working copy)
|
||||||
|
@@ -1077,11 +1077,14 @@
|
||||||
|
case $target in
|
||||||
|
armv6*-*-freebsd*)
|
||||||
|
target_cpu_cname="arm1176jzfs"
|
||||||
|
- tm_defines="${tm_defines} TARGET_FREEBSD_ARMv6=1"
|
||||||
|
if test $fbsd_major -ge 11; then
|
||||||
|
tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
+ armv7*-*-freebsd*)
|
||||||
|
+ target_cpu_cname="genericv7a"
|
||||||
|
+ tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1"
|
||||||
|
+ ;;
|
||||||
|
*)
|
||||||
|
target_cpu_cname="arm9"
|
||||||
|
;;
|
Loading…
Add table
Reference in a new issue