Add support for MODULES_OVERRIDE. This is a list of modules to build

instead of all of them.  You can put this in /etc/make.conf or in
makeoptions.

Reviewed by: arch@

# docs to follow.
This commit is contained in:
Warner Losh 2001-04-02 08:52:05 +00:00
parent a381d6c906
commit 581a68a232
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75082
6 changed files with 19 additions and 0 deletions

View File

@ -326,6 +326,9 @@ reinstall.debug: modules-reinstall.debug
.endif
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules

View File

@ -286,6 +286,9 @@ reinstall.debug: modules-reinstall.debug
.endif
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules

View File

@ -290,6 +290,9 @@ reinstall.debug: modules-reinstall.debug
.endif
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules

View File

@ -289,6 +289,9 @@ reinstall.debug: modules-reinstall.debug
.endif
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
MKMODULESENV+= MACHINE=pc98
modules:

View File

@ -286,6 +286,9 @@ reinstall.debug: modules-reinstall.debug
.endif
MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR}
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
modules:
@mkdir -p ${.OBJDIR}/modules

View File

@ -30,4 +30,8 @@ SUBDIR+=snc
SUBDIR+=osf1
.endif
.if defined(MODULES_OVERRIDE)
SUBDIR=${MODULES_OVERRIDE}
.endif
.include <bsd.subdir.mk>