Subject: Re: no dev at attachment [was: Re: CVS commit: src/usr.bin/config]
To: Quentin Garnier <cube@cubidou.net>
From: Eric Haszlakiewicz <erh@jodi.nimenees.com>
List: tech-kern
Date: 07/24/2005 19:21:26
On Sun, Jul 24, 2005 at 11:40:16PM +0200, Quentin Garnier wrote:
> On Sun, Jul 24, 2005 at 11:35:40PM +0200, Hubert Feyrer wrote:
> > So are there any things left that we can not disable again in a kernel=
=20
> > config file? If not, we can at least start rewriting the various=20
> > GENERIC/INSTALL variants to be based on a big one, and remove stuff ("n=
o=20
> > FOO at BAR", "no options BAZ", ...).
>=20
> We can rewrite them, yes.
>=20
> I did it for my laptop's kernel and it's tedious without any tools to
> help with the task.  We would still have to provide a lot of kernels
> with all the disabled devices (and maintain them), but I guess that
> might be easier to script that part now.  We'll see.

	run your kernel config through applyconf against GENERIC to get all the
lines included, then this:

cat CONFIG | sed -E -e's/^#([^[:space:]]*[[:space:]]*at[[:space:]].*)/no \1=
/'
etc.. for "options" lines and others.  Much less tedious. :)

eric