docs/140649: bad WITHOUT_MODULES example in handbook

Ben Kelly ben at wanderview.com
Wed Nov 18 02:00:10 UTC 2009


>Number:         140649
>Category:       docs
>Synopsis:       bad WITHOUT_MODULES example in handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 18 02:00:01 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:
The handbook currently incorrectly suggests you can specify module subdirectories in WITHOUT_MODULES.  See the second tip on this page:

  http://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html

This is incorrect because the WITHOUT_MODULES logic in /usr/src/sys/modules/Makefile will only exclude items in the original SUBDIRS list.  Only the top level module directories are included in this list.
>How-To-Repeat:
Add the following to your /etc/make.conf:

  WITHOUT_MODULES=sound/driver/emu10k1

Build the kernel and see the emu10k1 module get built anyway.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list