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: [email protected] <[email protected]> On Behalf 
Of Todd Gruhn
Sent: Monday, April 8, 2024 8:12 AM
To: Martin Husemann <[email protected]>
Cc: Chris Pinnock <[email protected]>; Netbsd-Users-List 
<[email protected]>
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 <[email protected]> wrote:
>
> On Mon, Apr 08, 2024 at 02:15:30PM +0100, Chris Pinnock wrote:
> >
> >
> > > On 8 Apr 2024, at 10:11, Todd Gruhn <[email protected]> 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.

Reply via email to