mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-29 08:08:37 +00:00
Convert all the arm big endian tests into a regexp rather than a list.
Suggested by: emaste@
This commit is contained in:
parent
188e46ab03
commit
40b0fb72f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322521
@ -16,7 +16,7 @@ TARGET_VENDOR?= unknown
|
||||
TARGET_OS?= freebsd
|
||||
BINUTILS_ARCH=${TARGET_ARCH:C/amd64/x86_64/}
|
||||
TARGET_TUPLE?= ${BINUTILS_ARCH}-${TARGET_VENDOR}-${TARGET_OS}
|
||||
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb" || \
|
||||
.if ${TARGET_ARCH:Marm*eb} != "" || \
|
||||
(${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips*el*} == "")
|
||||
TARGET_BIG_ENDIAN=t
|
||||
.endif
|
||||
|
@ -1,6 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb"
|
||||
.if ${TARGET_ARCH:Marm*eb} != ""
|
||||
NATIVE_EMULATION= armelfb_fbsd
|
||||
.else
|
||||
NATIVE_EMULATION= armelf_fbsd
|
||||
|
@ -1,6 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb"
|
||||
.if ${TARGET_ARCH:Marm*eb} != ""
|
||||
DEFAULT_VECTOR= bfd_elf32_bigarm_vec
|
||||
.else
|
||||
DEFAULT_VECTOR= bfd_elf32_littlearm_vec
|
||||
@ -14,7 +14,7 @@ SRCS+= cpu-arm.c \
|
||||
elflink.c
|
||||
|
||||
VECS+= ${DEFAULT_VECTOR}
|
||||
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb"
|
||||
.if ${TARGET_ARCH:Marm*eb} != ""
|
||||
VECS+= bfd_elf32_littlearm_vec
|
||||
.else
|
||||
VECS+= bfd_elf32_bigarm_vec
|
||||
|
@ -31,7 +31,7 @@ CFLAGS+= -DCROSS_DIRECTORY_STRUCTURE
|
||||
CFLAGS+= -DTARGET_ARM_EABI
|
||||
.endif
|
||||
|
||||
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb"
|
||||
.if ${TARGET_ARCH:Marm*eb} != ""
|
||||
CFLAGS += -DTARGET_ENDIAN_DEFAULT=MASK_BIG_END
|
||||
.endif
|
||||
.if ${TARGET_ARCH} == "armv6" || ${TARGET_ARCH} == "armv6eb"
|
||||
|
@ -14,7 +14,7 @@ GCC_CPU=${TARGET_CPUARCH:C/amd64/i386/:C/powerpc/rs6000/:C/sparc64/sparc/}
|
||||
.if ${TARGET_ARCH} == "sparc64"
|
||||
TARGET_CPU_DEFAULT= TARGET_CPU_ultrasparc
|
||||
.endif
|
||||
.if ${TARGET_ARCH} == "armeb" || ${TARGET_ARCH} == "armv6eb" || \
|
||||
.if ${TARGET_ARCH:Marm*eb} != "" || \
|
||||
(${TARGET_CPUARCH} == "mips" && ${TARGET_ARCH:Mmips*el*} == "")
|
||||
TARGET_BIG_ENDIAN=t
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user