Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Oct 1998 14:49:59 +1030
From:      Greg Lehey <grog@lemis.com>
To:        MICHAEL@one.com.au, FreeBSD Questions <questions@FreeBSD.ORG>
Subject:   Re: kernels
Message-ID:  <19981028144959.Q25247@freebie.lemis.com>
In-Reply-To: <199810280022.KAA12332@gw.one.com.au>; from MICHAEL@one.com.au on Wed, Oct 28, 1998 at 10:22:34AM %2B1000
References:  <199810280022.KAA12332@gw.one.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 28 October 1998 at 10:22:34 +1000, MICHAEL@one.com.au wrote:
>
> Is it possible to extract a kernels configuration file ( ie its source ), from
> the built kernel.

Yes, if it has been built with the INCLUDE_CONFIG_FILE option.
I don't believe any standard kernel is built this way, but you could
do it yourself.

> If so, what is the command that allows one to do this.

>From /sys/i386/config/LINT:

# This allows you to actually store this configuration file into
# the kernel binary itself, where it may be later read by saying:
#    strings -aout -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
#
options         INCLUDE_CONFIG_FILE     # Include this file in kernel

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981028144959.Q25247>