summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-07-29 18:45:38 +0000
committeremaste <emaste@FreeBSD.org>2015-07-29 18:45:38 +0000
commit32e34ac2b595f7fda4fd60eb068119b02dfce0a7 (patch)
tree1dd80db28960f1762946a615398f646b34178730 /gnu
parent4829edcacf3d5dc06981744eb6ae9d3faf755697 (diff)
downloadFreeBSD-src-32e34ac2b595f7fda4fd60eb068119b02dfce0a7.zip
FreeBSD-src-32e34ac2b595f7fda4fd60eb068119b02dfce0a7.tar.gz
Allow ELF Tool Chain elfcopy to be installed as objcopy
ELF Tool Chain elfcopy is nearly a drop-in replacement for GNU objcopy, but does not currently support PE output which is needed for building x86 UEFI bits. Add a src.conf knob to allow installing it as objcopy and set it by default for aarch64 only, where we don't have a native binutils. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2887
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/binutils/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/Makefile b/gnu/usr.bin/binutils/Makefile
index 1c863df..d124148 100644
--- a/gnu/usr.bin/binutils/Makefile
+++ b/gnu/usr.bin/binutils/Makefile
@@ -11,7 +11,7 @@ SUBDIR= doc\
as \
ld \
${_nm} \
- objcopy \
+ ${_objcopy} \
objdump \
${_readelf} \
${_size} \
@@ -26,5 +26,8 @@ _size= size
_strings= strings
_strip= strip
.endif
+.if ${MK_ELFTOOLCHAIN_TOOLS} == "no" || ${MK_ELFCOPY_AS_OBJCOPY} == "no"
+_objcopy= objcopy
+.endif
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud