Re: [opensuse-kernel] Re: [RFC] Simplifying kernel configuration for distro issues
- To: Borislav Petkov <firstname.lastname@example.org>
- Cc: Cyrill Gorcunov <email@example.com>, Pekka Enberg <firstname.lastname@example.org>, richard -rw- weinberger <email@example.com>, "Myklebust, Trond" <Trond.Myklebust@netapp.com>, Linus Torvalds <firstname.lastname@example.org>, Dave Jones <email@example.com>, Greg Kroah-Hartman <firstname.lastname@example.org>, Ubuntu Kernel Team <email@example.com>, Debian Kernel Team <firstname.lastname@example.org>, OpenSUSE Kernel Team <email@example.com>, Linux Kernel Mailing List <firstname.lastname@example.org>, Ingo Molnar <email@example.com>, Sasha Levin <firstname.lastname@example.org>, Asias He <email@example.com>
- Subject: Re: [opensuse-kernel] Re: [RFC] Simplifying kernel configuration for distro issues
- From: Steven Rostedt <firstname.lastname@example.org>
- Date: Thu, 19 Jul 2012 13:57:26 -0400
- Message-id: <[🔎] email@example.com>
- In-reply-to: <[🔎] 20120719173415.GE23393@aftab.osrc.amd.com>
- References: <[🔎] CA+55aFxw8pY1KMjobp=dKJd+g4B9KGhe4+fsfSPA3ofCGVhkPQ@mail.gmail.com> <[🔎] firstname.lastname@example.org> <[🔎] CAFLxGvxxWodD97=78218wc+tuigAFsNK_PdroDfb4BWTZoxxUw@mail.gmail.com> <[🔎] 20120714103716.GD26559@liondog.tnic> <CAOJsxLGHQuuXqDD-1SNhL7Ly1-heCYFLzqj3SLh4xzmP9NR5GQ@mail.gmail.com> <[🔎] 20120714124332.GA4093@moon> <[🔎] 20120714174827.GA13319@aftab.osrc.amd.com> <[🔎] 20120719144217.GC16873@home.goodmis.org> <[🔎] 20120719164807.GD23393@aftab.osrc.amd.com> <[🔎] email@example.com> <[🔎] 20120719173415.GE23393@aftab.osrc.amd.com>
On Thu, 2012-07-19 at 19:34 +0200, Borislav Petkov wrote:
> > I can pass the above to a allnoconfig, and the box will boot and allow
> > ssh. Note, the reason for the serial config, is that this ktest run uses
> > a serial port to see if the box booted. If the serial isn't there, then
> > it thinks it failed.
> I agree with all this and you've explained this to me live already so
> you're preaching to the choir.
Yes, I know you know this already, as we discussed it in a pub over a
beer (choir practice). But this is a public forum on LKML (the church),
where I now have an audience of heathens. Convert! Convert! You are all
> But it would be a lot faster/easier if users can select, let's call'em
> "profiles" which are not mutually exclusive and can speed up the
> configuration process. They can either be distro-specific or generic,
> selecting certain features you need.
> So configuring your kernel would be like shopping without paying too
> much attention to details. Let's look into the head of a person doing a
> config like that and read some of her thoughts :):
> "Hm, ok, this new configurator is cool, a lot faster I gotta say... So,
> what do I need, ah, yes, it is an AMD laptop so from vendors I select
> AMD, then I probably need ext4, then I'd like to do packet filtering
> so I should enable iptables.. Oh, I'd like to do tracing too so let's
> enable tracing and trust Steven with the options he's added by default,
> then I need ahci, I'd also like to do encrypted partitions so I'll
> enable device mapper with crypto... "
> So all those things could be selectable from that profiles menu without
> having to go through the gazillion of little suboptions and having to
> read help (which is sometimes completely helpless) and figure out do I
> need it or not.
> And this would simplify configuration a lot. IMHO, anyway.
I totally agree with this. It would be nice to have a profile list where
you can pick and chose what you have installed:
Where you can pick and choose what general features you want and it
selects all the core infrastructure to get those features usable. It
wouldn't select the device modules needed, you will still need to select
what hardware you have. But it gets most of the work done for you.
But this still doesn't solve Linus's initial request. That would be a
single option that makes your distro boot, and work well. Again, that
option wont have the drivers needed, but it will enable all the core
infrastructure that you need.
Going with my /usr/share/Linux/Kconfig, this could use the profile
options as well. And just select those that are required. But then
again, Linus did want a minimum selection of stuff.
Side note (again), IIRC, "select" has a bug. If you have Config X
selecting config Y but Y depends on Z, if you enable X, it will enable Y
without enabling Z. I think there were some patches to address this, but
I don't remember.