NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: compile kernel
What about all the devices, SCSI, PCI, ISA, CardBus, aon other types
of stuff?
Too, many ethers, and MII / PHY stuff...
On Mon, Apr 8, 2024 at 2:44 PM Martin Husemann <martin%duskware.de@localhost> wrote:
>
> 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