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:
parent
a381d6c906
commit
581a68a232
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75082
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -30,4 +30,8 @@ SUBDIR+=snc
|
||||
SUBDIR+=osf1
|
||||
.endif
|
||||
|
||||
.if defined(MODULES_OVERRIDE)
|
||||
SUBDIR=${MODULES_OVERRIDE}
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user