Pay attention to MK_ELFTOOLCHAIN_TOOLS so we build the desired tools.

This commit is contained in:
Simon J. Gerraty 2015-06-15 20:11:15 +00:00
parent db7548d040
commit cdea5d8c84
3 changed files with 62 additions and 6 deletions

View File

@ -0,0 +1,14 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
include \
include/xlocale \
lib/libelf \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif

View File

@ -7,21 +7,38 @@ DEP_RELDIR := ${_PARSEDIR:S,${SRCTOP}/,,}
.if !defined(MK_CLANG) .if !defined(MK_CLANG)
.include "${SRCTOP}/share/mk/src.opts.mk" .include "${SRCTOP}/share/mk/src.opts.mk"
.endif .endif
DIRDEPS=
.if ${MK_ELFTOOLCHAIN_TOOLS} == "yes"
DIRDEPS+= \
usr.bin/addr2line \
usr.bin/cxxflit \
usr.bin/elfcopy \
usr.bin/nm \
usr.bin/readelf \
usr.bin/size \
usr.bin/strip \
usr.bin/strings \
.else
DIRDEPS+= \
gnu/usr.bin/binutils/addr2line \
gnu/usr.bin/binutils/nm \
gnu/usr.bin/binutils/readelf \
gnu/usr.bin/binutils/size \
gnu/usr.bin/binutils/strip \
gnu/usr.bin/binutils/strings \
.endif
DIRDEPS= \ DIRDEPS= \
usr.bin/xinstall \ usr.bin/xinstall \
gnu/usr.bin/binutils/addr2line \
gnu/usr.bin/binutils/ar \ gnu/usr.bin/binutils/ar \
gnu/usr.bin/binutils/as \ gnu/usr.bin/binutils/as \
gnu/usr.bin/binutils/ld \ gnu/usr.bin/binutils/ld \
gnu/usr.bin/binutils/nm \
gnu/usr.bin/binutils/objcopy \ gnu/usr.bin/binutils/objcopy \
gnu/usr.bin/binutils/objdump \ gnu/usr.bin/binutils/objdump \
gnu/usr.bin/binutils/ranlib \ gnu/usr.bin/binutils/ranlib \
gnu/usr.bin/binutils/readelf \
gnu/usr.bin/binutils/size \
gnu/usr.bin/binutils/strings \
gnu/usr.bin/binutils/strip \
.if ${MK_CLANG} == "yes" .if ${MK_CLANG} == "yes"

View File

@ -0,0 +1,25 @@
# $FreeBSD$
# Autogenerated - do NOT edit!
DIRDEPS = \
gnu/lib/csu \
gnu/lib/libgcc \
lib/${CSU_DIR} \
lib/libarchive \
lib/libbz2 \
lib/libc \
lib/libcompiler_rt \
lib/libelf \
lib/libelftc \
lib/libexpat \
lib/liblzma \
lib/libthr \
lib/libz \
secure/lib/libcrypto \
.include <dirdeps.mk>
.if ${DEP_RELDIR} == ${_DEP_RELDIR}
# local dependencies - needed for -jN in clean tree
.endif