mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Separate ELFTOOLCHAIN_BOOTSTRAP from BINUTILS_BOOTSTRAP
For most cases they are equivalent, but BINUTILS_BOOTSTRAP is a BROKEN_OPTION on arm64 as the in-tree GNU binutils do not support it, so we need a separate internal flag for ELF Tool Chain. Reviewed by: andrew, brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3381
This commit is contained in:
parent
5041118435
commit
084748985d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286842
@ -1493,6 +1493,8 @@ _btxld= usr.sbin/btxld
|
||||
.if ${XAS:M/*} == ""
|
||||
.if ${MK_BINUTILS_BOOTSTRAP} != "no"
|
||||
_binutils= gnu/usr.bin/binutils
|
||||
.endif
|
||||
.if ${MK_ELFTOOLCHAIN_BOOTSTRAP} != "no"
|
||||
_elftctools= lib/libelftc \
|
||||
usr.bin/elfcopy \
|
||||
usr.bin/nm \
|
||||
@ -1502,7 +1504,7 @@ _elftctools= lib/libelftc \
|
||||
# cross-build on a FreeBSD 10 host:
|
||||
_elftctools+= usr.bin/addr2line
|
||||
.endif
|
||||
.elif ${TARGET_ARCH} != ${MACHINE_ARCH} && ${MK_BINUTILS_BOOTSTRAP} != "no"
|
||||
.elif ${TARGET_ARCH} != ${MACHINE_ARCH} && ${MK_ELFTOOLCHAIN_BOOTSTRAP} != "no"
|
||||
# If cross-building with an external binutils we still need to build strip for
|
||||
# the target (for at least crunchide).
|
||||
_elftctools= lib/libelftc \
|
||||
|
@ -80,6 +80,7 @@ __DEFAULT_YES_OPTIONS = \
|
||||
DYNAMICROOT \
|
||||
ED_CRYPTO \
|
||||
EE \
|
||||
ELFTOOLCHAIN_BOOTSTRAP \
|
||||
EXAMPLES \
|
||||
FDT \
|
||||
FILE \
|
||||
@ -328,6 +329,7 @@ MK_GROFF:= no
|
||||
.if ${MK_CROSS_COMPILER} == "no"
|
||||
MK_BINUTILS_BOOTSTRAP:= no
|
||||
MK_CLANG_BOOTSTRAP:= no
|
||||
MK_ELFTOOLCHAIN_BOOTSTRAP:= no
|
||||
MK_GCC_BOOTSTRAP:= no
|
||||
.endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user