Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 1,476 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.endif | .endif | ||||
# If we're given an XAS, don't build binutils. | # If we're given an XAS, don't build binutils. | ||||
.if ${XAS:M/*} == "" | .if ${XAS:M/*} == "" | ||||
.if ${MK_BINUTILS_BOOTSTRAP} != "no" | .if ${MK_BINUTILS_BOOTSTRAP} != "no" | ||||
_binutils= gnu/usr.bin/binutils | _binutils= gnu/usr.bin/binutils | ||||
.endif | .endif | ||||
.if ${MK_ELFTOOLCHAIN_TOOLS} != "no" | .if ${MK_CROSS_COMPILER} != "no" | ||||
emaste: These are for the build tools stage, and should probably not be controlled by MK_TOOLCHAIN. | |||||
emasteAuthorUnsubmitted Not Done Inline ActionsI'm not certain what we should be testing here and below. We want the equivalent of MK_BINUTILS_BOOTSTRAP for ELF Tool Chain. MK_BINUTILS_BOOTSTRAP isn't documented, but is enabled unless turned off by setting WITHOUT_CROSS_COMPILER or if set broken by the arch. emaste: I'm not certain what we should be testing here and below. We want the equivalent of… | |||||
brooksUnsubmitted Not Done Inline ActionsI might just use MK_BINUTILS_BOOTSTRAP since is effectively internal and I think expresses what we want (don't built the non-compiler part of the toolchain). lld may complicate that a bit since it's llvm based and thus will come with clang not with elftoolchain or binutils. brooks: I might just use MK_BINUTILS_BOOTSTRAP since is effectively internal and I think expresses what… | |||||
emasteAuthorUnsubmitted Not Done Inline ActionsOops -- see D3381. I committed with the change suggested here, but it's not correct because we force MK_BINUTILS_BOOTSTRAP off for arm64. emaste: Oops -- see D3381. I committed with the change suggested here, but it's not correct because we… | |||||
_elftctools= lib/libelftc \ | _elftctools= lib/libelftc \ | ||||
usr.bin/elfcopy \ | usr.bin/elfcopy \ | ||||
usr.bin/nm \ | usr.bin/nm \ | ||||
usr.bin/size \ | usr.bin/size \ | ||||
usr.bin/strings | usr.bin/strings | ||||
# These are not required by the build, but can be useful for developers who | # These are not required by the build, but can be useful for developers who | ||||
# cross-build on a FreeBSD 10 host: | # cross-build on a FreeBSD 10 host: | ||||
_elftctools+= usr.bin/addr2line | _elftctools+= usr.bin/addr2line | ||||
.endif | .endif | ||||
.elif ${TARGET_ARCH} != ${MACHINE_ARCH} && ${MK_ELFTOOLCHAIN_TOOLS} != "no" | .elif ${TARGET_ARCH} != ${MACHINE_ARCH} && ${MK_CROSS_COMPILER} != "no" | ||||
# If cross-building with an external binutils we still need to build strip for | # If cross-building with an external binutils we still need to build strip for | ||||
# the target (for at least crunchide). | # the target (for at least crunchide). | ||||
_elftctools= lib/libelftc \ | _elftctools= lib/libelftc \ | ||||
usr.bin/elfcopy | usr.bin/elfcopy | ||||
.endif | .endif | ||||
# If an full path to an external cross compiler is given, don't build | # If an full path to an external cross compiler is given, don't build | ||||
# a cross compiler. | # a cross compiler. | ||||
▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines |
These are for the build tools stage, and should probably not be controlled by MK_TOOLCHAIN. They'd need the equivalent of MK_TOOLCHAIN_BOOTSTRAP, but probably best to just leave them on unconditionally.