Skip to content

Commit

Permalink
Convert all the arm big endian tests into a regexp rather than a list.
Browse files Browse the repository at this point in the history
Suggested by: emaste@
  • Loading branch information
bsdimp committed Aug 14, 2017
1 parent 18951ee commit 2fd0ca5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gnu/usr.bin/binutils/Makefile.inc0
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gnu/usr.bin/binutils/ld/Makefile.arm
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions gnu/usr.bin/binutils/libbfd/Makefile.arm
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gnu/usr.bin/cc/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion gnu/usr.bin/cc/Makefile.tgt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fd0ca5

Please sign in to comment.