summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-04-02 08:52:05 +0000
committerimp <imp@FreeBSD.org>2001-04-02 08:52:05 +0000
commita24ec299ea9604c83b151707b8879b3ef69b50d4 (patch)
tree6c8ff29318c4f81bf16aca3bca70f76043fa4a31 /sys
parent162a118d7df784de3e3a1a6d11173d733ab45d79 (diff)
downloadFreeBSD-src-a24ec299ea9604c83b151707b8879b3ef69b50d4.zip
FreeBSD-src-a24ec299ea9604c83b151707b8879b3ef69b50d4.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/Makefile.alpha3
-rw-r--r--sys/conf/Makefile.i3863
-rw-r--r--sys/conf/Makefile.ia643
-rw-r--r--sys/conf/Makefile.pc983
-rw-r--r--sys/conf/Makefile.powerpc3
-rw-r--r--sys/modules/Makefile4
6 files changed, 19 insertions, 0 deletions
diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha
index 37f7897..f4e9bcc 100644
--- a/sys/conf/Makefile.alpha
+++ b/sys/conf/Makefile.alpha
@@ -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
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index 2fa7b9a..55b4f54 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -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
diff --git a/sys/conf/Makefile.ia64 b/sys/conf/Makefile.ia64
index eccf6c0..4b9010f 100644
--- a/sys/conf/Makefile.ia64
+++ b/sys/conf/Makefile.ia64
@@ -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
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98
index 69a7d37..c7bae1d 100644
--- a/sys/conf/Makefile.pc98
+++ b/sys/conf/Makefile.pc98
@@ -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:
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index 2fa7b9a..55b4f54 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -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
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 4768635..0b504bc 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -30,4 +30,8 @@ SUBDIR+=snc
SUBDIR+=osf1
.endif
+.if defined(MODULES_OVERRIDE)
+SUBDIR=${MODULES_OVERRIDE}
+.endif
+
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud