Re: modular kernconf

From: John Baldwin <jhb_at_freebsd.org>
Date: Thu, 12 Feb 2009 08:18:33 -0500
On Wednesday 11 February 2009 6:04:51 pm Svein Skogen (listmail account) 
wrote:
> Chuck Swiger wrote:
> > On Feb 11, 2009, at 12:31 PM, Buganini wrote:
> > [ ... ]
> >> This way I can customize my kernconf cleanly and easily.
> >> Like today I want to try USB2, I just change the GENERIC to USB2, then
> >> I got what I want.
> >>
> >> I dont like to make a replica GENERIC then modify it,
> >> because sometimes options in the SCHED section changes,
> >> and in this case, if I want to try USB2, things become dirty.
> >>
> >> Or any better ideas?
> >
> > You should look into the way the include directive is used for the SMP
> > and PAE kernels (ie, /usr/src/sys/i386/conf/SMP).  You can make specific
> > changes to GENERIC to enable or disable things without having to roll an
> > entire kernel config file....
> >
> > Regards,
> 
> Can the kernel file (that contains the include directive) contain an
> opposite of the option and device, such as no_option or no_device?

Yes, just prefix a line with 'no', e.g. 'nodevice de'.

-- 
John Baldwin
Received on Thu Feb 12 2009 - 13:36:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:42 UTC