Introduce a variable TARGETS that can be set on the make command line

and that controls which platforms are being built as part of a "make
universe". By default TARGETS is set to the 8 platforms currently
being built. This variable is useful for running or re-running a
"make universe" with only a selected set of platforms. This makes the
universe target slightly more useful in cases the universe is limited
to a developer's scope or objectives. For example, when a universe
failed for a particular platform and fixes need to be tested for that
particular platform then a developer can restart the universe for
only that platform, even if the initial universe is still building
other platforms.
This commit is contained in:
Marcel Moolenaar 2007-04-02 21:32:44 +00:00
parent cf5bdd4446
commit 1bdb3fb97e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168280

View File

@ -261,12 +261,14 @@ make: .PHONY
# existing system is.
#
.if make(universe)
TARGETS?=amd64 arm i386 ia64 pc98 powerpc sparc64 sun4v
universe: universe_prologue
universe_prologue:
@echo "--------------------------------------------------------------"
@echo ">>> make universe started on ${STARTTIME}"
@echo "--------------------------------------------------------------"
.for target in amd64 arm i386 ia64 pc98 powerpc sparc64 sun4v
.for target in ${TARGETS}
KERNCONFS!= cd ${.CURDIR}/sys/${target}/conf && \
find [A-Z]*[A-Z] -type f -maxdepth 0 \
! -name DEFAULTS ! -name LINT