Date: Wed, 18 Nov 2009 01:54:50 GMT From: Ben Kelly <ben@wanderview.com> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/140650: WITHOUT_MODULES cannot be used from kernel config with makeoptions Message-ID: <200911180154.nAI1so03045487@www.freebsd.org> Resent-Message-ID: <200911180200.nAI202lw061842@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911180154.nAI1so03045487>
