NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: compile kernel



On Mon, Apr 08, 2024 at 02:15:30PM +0100, Chris Pinnock wrote:
> 
> 
> > On 8 Apr 2024, at 10:11, Todd Gruhn <tgruhn2%gmail.com@localhost> wrote:
> > 
> > Is there a better way to config a netbsd kernel.
> > 
> > GENERIC is getting so big.
> 
> In arch/*/conf you can copy the GENERIC kernel config file and edit the new file to remove drivers and features. (e.g. if you don?t use NFS, you can remove it.)
> Then run config with the new file.

Another option (for many architectures) is to have a GENERIC.local file
(next to GENERIC in your arch's conf/ directory) and use that to remove
unwanted options from GENERIC. This avoids stale copies of GENERIC when
other changes happen to GENERIC.

You use "no ..." statements in GENERIC.local, like:

no file-system NFS
no file-system LFS
no options INET6
no i915drmkms*
no radeon*
no nouveau*


Martin


Home | Main Index | Thread Index | Old Index