*BSD News Article 83238


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!nntp.uio.no!nntp.zit.th-darmstadt.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Kernel Options
Date: 19 Nov 1996 23:38:41 GMT
Organization: Private BSD site, Dresden
Lines: 26
Message-ID: <56tge1$am3@uriah.heep.sax.de>
References: <3290322c.45152134@netnews.hinet.net> <nFd6Lo0@quack.kfu.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

nsayer@quack.kfu.com (Nick Sayer) wrote:

> >How do I know all of the kernel options ? Thanx.
> 
> Look in /sys/i386/conf/LINT.

Well, that's the documented options only. :)

Something like the following script might get you all the options:

find /usr/src -name '*.c' | grep -E '^#(ifdef|if[ ]+defined)' | sort -u

Just kidding...  Any of the unofficial options that is seen by config
will be converted into a -D in the kernel's Makefile.  FreeBSD 2.2
moved away from this paradigm for all the official options by moving
them out into opt_foo.h files in the compile directory.  This way,
Makefile dependencies will work again.  Hence there's almost no longer
a need for config's (mis)feature to wipe the compile directory first,
though a few suckers still remain (like the options for UFS and NFS).

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)