Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 08:18:33 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        "Svein Skogen \(listmail account\)" <svein-listmail@stillbilde.net>, Buganini <buganini@gmail.com>, current@freebsd.org
Subject:   Re: modular kernconf
Message-ID:  <200902120818.34567.jhb@freebsd.org>
In-Reply-To: <49935993.50303@stillbilde.net>
References:  <e5b1e8d40902111231y23611fc4w5db3fe3c40fbb15a@mail.gmail.com> <FF758FB0-DA6E-4AE4-A575-A4CDC4B65FD6@mac.com> <49935993.50303@stillbilde.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902120818.34567.jhb>