Add lists for customizing legacy and bootstrap-tools.

Reviewed by:	arichardson
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D27200
This commit is contained in:
Bryan Drewery 2020-11-20 20:11:59 +00:00
parent b8e2395ec5
commit 80cedb809f
2 changed files with 21 additions and 4 deletions

View File

@ -20,8 +20,12 @@
# LOCAL_LIB_DIRS="list of dirs" to add additional dirs to libraries target # LOCAL_LIB_DIRS="list of dirs" to add additional dirs to libraries target
# LOCAL_MTREE="list of mtree files" to process to allow local directories # LOCAL_MTREE="list of mtree files" to process to allow local directories
# to be created before files are installed # to be created before files are installed
# LOCAL_LEGACY_DIRS="list of dirs" to add additional dirs to the legacy
# target
# LOCAL_BSTOOL_DIRS="list of dirs" to add additional dirs to the
# bootstrap-tools target
# LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools # LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools
# list # target
# LOCAL_XTOOL_DIRS="list of dirs" to add additional dirs to the # LOCAL_XTOOL_DIRS="list of dirs" to add additional dirs to the
# cross-tools target # cross-tools target
# METALOG="path to metadata log" to write permission and ownership # METALOG="path to metadata log" to write permission and ownership
@ -2127,7 +2131,9 @@ legacy: .PHONY
false false
.endif .endif
.for _tool in tools/build .for _tool in \
tools/build \
${LOCAL_LEGACY_DIRS}
${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \ ${_+_}@${ECHODIR} "===> ${_tool} (obj,includes,all,install)"; \
cd ${.CURDIR}/${_tool}; \ cd ${.CURDIR}/${_tool}; \
if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \ if [ -z "${NO_OBJWALK}" ]; then ${MAKE} DIRPRFX=${_tool}/ obj; fi; \
@ -2458,7 +2464,8 @@ bootstrap-tools: ${_bt}-links .PHONY
${_crunchgen} \ ${_crunchgen} \
${_nmtree} \ ${_nmtree} \
${_vtfontcvt} \ ${_vtfontcvt} \
${_localedef} ${_localedef} \
${LOCAL_BSTOOL_DIRS}
${_bt}-${_tool}: ${_bt}-links .PHONY .MAKE ${_bt}-${_tool}: ${_bt}-links .PHONY .MAKE
${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \ ${_+_}@${ECHODIR} "===> ${_tool} (obj,all,install)"; \
cd ${.CURDIR}/${_tool}; \ cd ${.CURDIR}/${_tool}; \

View File

@ -24,7 +24,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd November 3, 2020 .Dd November 12, 2020
.Dt BUILD 7 .Dt BUILD 7
.Os .Os
.Sh NAME .Sh NAME
@ -572,6 +572,16 @@ If set, this variable supplies a list of additional mtrees relative to the
root of the source tree to use as part of the root of the source tree to use as part of the
.Cm hierarchy .Cm hierarchy
target. target.
.It Va LOCAL_LEGACY_DIRS
If set, this variable supplies a list of additional directories relative to
the root of the source tree to build as part of the
.Cm legacy
target.
.It Va LOCAL_BSTOOL_DIRS
If set, this variable supplies a list of additional directories relative to
the root of the source tree to build as part of the
.Cm bootstrap-tools
target.
.It Va LOCAL_TOOL_DIRS .It Va LOCAL_TOOL_DIRS
If set, this variable supplies a list of additional directories relative to If set, this variable supplies a list of additional directories relative to
the root of the source tree to build as part of the the root of the source tree to build as part of the