Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2002 16:26:34 -0600 (CST)
From:      "Doug Poland" <doug@polands.org>
To:        <paulbeard@mac.com>
Cc:        <questions@FreeBSD.ORG>
Subject:   Re: extracting kernel compilation options
Message-ID:  <2556.172.16.1.33.1036275994.squirrel@samaria.polands.org>
In-Reply-To: <3DC44D80.3060900@mac.com>
References:  <2414.172.16.1.33.1036274472.squirrel@samaria.polands.org> <3DC44D80.3060900@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
paul beard said:
> Doug Poland wrote:
>> I need to see what options a kernel was compiled with.  I
>> remember a few years back that there is a command that will show
>> you all the kernel options and devices.  Does anyone know how to
>> do that?
>>
>
> You can compile in that option:
>
> options         INCLUDE_CONFIG_FILE      # Include this file in
> kernel
>
> and use this to extract it later:
> strings -n 3 /kernel | sed -n 's/^___//p' > MYKERNEL
>
Hi Paul,

Thanks for the tip.  I suppose it goes without saying that if a kernel
is not compiled with this option, then the config is not available.

-- 
Regards,
Doug



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?2556.172.16.1.33.1036275994.squirrel>