conf/140650: WITHOUT_MODULES cannot be used from kernel config with
makeoptions
Ben Kelly
ben at wanderview.com
Wed Nov 18 02:00:11 UTC 2009
>Number: 140650
>Category: conf
>Synopsis: WITHOUT_MODULES cannot be used from kernel config with makeoptions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 18 02:00:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Ben Kelly
>Release: CURRENT
>Organization:
>Environment:
FreeBSD ianto.in.wanderview.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r254M: Fri Nov 13 23:26:25 UTC 2009 root at ianto.in.wanderview.com:/usr/obj/usr/src/sys/SERVER i386
>Description:
Currently you can only specify WITHOUT_MODULES in /etc/make.conf. This is unintuitive since the related variable MODULES_OVERRIDE is often used from kernel config files. The attached patch fixes this problem for me.
>How-To-Repeat:
>Fix:
Index: sys/conf/kern.pre.mk
===================================================================
--- sys/conf/kern.pre.mk (revision 254)
+++ sys/conf/kern.pre.mk (working copy)
@@ -163,6 +163,9 @@
.if defined(MODULES_OVERRIDE)
MKMODULESENV+= MODULES_OVERRIDE="${MODULES_OVERRIDE}"
.endif
+.if defined(WITHOUT_MODULES)
+MKMODULESENV+= WITHOUT_MODULES="${WITHOUT_MODULES}"
+.endif
.if defined(DEBUG)
MKMODULESENV+= DEBUG_FLAGS="${DEBUG}"
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list