summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/binutils/libbfd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2011-01-07 20:26:33 +0000
committerimp <imp@FreeBSD.org>2011-01-07 20:26:33 +0000
commit54d5c7e86fd36ddd2ea33b3ec25fdc3e4b71f0f4 (patch)
tree12ed45fc5cc0930d7f4165ad7f223aba33b36162 /gnu/usr.bin/binutils/libbfd
parenta6ca4af56352f3a556f847fe386e74305fa0c2aa (diff)
downloadFreeBSD-src-54d5c7e86fd36ddd2ea33b3ec25fdc3e4b71f0f4.zip
FreeBSD-src-54d5c7e86fd36ddd2ea33b3ec25fdc3e4b71f0f4.tar.gz
Retire TARGET_ABI.
Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces MACHINE_ARCH=mipse[lb] TARGET_ABI=n64. MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated this much, but implemented this to preserve as much of the TARGET_ABI functionality that I could. Since its presence doesn't affect the working cases, I've kept it in for now. Added mips64e[lb] to make universe, so more kernels build. And I think this (finally) closes the curtain on the tbemd tree.
Diffstat (limited to 'gnu/usr.bin/binutils/libbfd')
-rw-r--r--gnu/usr.bin/binutils/libbfd/Makefile.mips13
1 files changed, 6 insertions, 7 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/Makefile.mips b/gnu/usr.bin/binutils/libbfd/Makefile.mips
index bf21130..02026ba 100644
--- a/gnu/usr.bin/binutils/libbfd/Makefile.mips
+++ b/gnu/usr.bin/binutils/libbfd/Makefile.mips
@@ -1,19 +1,18 @@
# $FreeBSD$
-.if ${TARGET_ARCH} == "mipsel"
+.if ${TARGET_ARCH:Mmips*el} != ""
_EMULATION_ENDIAN=little
.else
_EMULATION_ENDIAN=big
.endif
-.if defined(TARGET_ABI) && ${TARGET_ABI} != "o32"
-.if ${TARGET_ABI} == "n32"
-DEFAULT_VECTOR= bfd_elf32_ntrad${_EMULATION_ENDIAN}mips_vec
-.elif ${TARGET_ABI} == "n64"
+.if ${TARGET_ARCH:Mmips64*} != ""
DEFAULT_VECTOR= bfd_elf64_trad${_EMULATION_ENDIAN}mips_vec
+.elif ${TARGET_ARCH:Mmipsn32*} != ""
+DEFAULT_VECTOR= bfd_elf32_ntrad${_EMULATION_ENDIAN}mips_vec
+.else
+DEFAULT_VECTOR=bfd_elf32_trad${_EMULATION_ENDIAN}mips_vec
.endif
-.endif
-DEFAULT_VECTOR?=bfd_elf32_trad${_EMULATION_ENDIAN}mips_vec
SRCS+= coff-mips.c \
cpu-mips.c \
OpenPOWER on IntegriCloud