NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
RE: EXT MAIL : Re: compile kernel
Just comment the lines you don’t want..
And then to compile its
Config GENERIC.new
cd ../compile/GENERIC.new
make depend && make
-----Original Message-----
From: netbsd-users-owner%NetBSD.org@localhost <netbsd-users-owner%NetBSD.org@localhost> On Behalf Of Todd Gruhn
Sent: Monday, April 8, 2024 8:12 AM
To: Martin Husemann <martin%duskware.de@localhost>
Cc: Chris Pinnock <chris_pinnock%mac.com@localhost>; Netbsd-Users-List <netbsd-users%netbsd.org@localhost>
Subject: EXT MAIL : 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
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Home |
Main Index |
Thread Index |
Old Index