Re: ARM defconfig files

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Russell King
Date: Thursday, June 3, 2010 - 11:10 am

On Thu, Jun 03, 2010 at 07:48:18AM -0700, Linus Torvalds wrote:

Umm...


Umm.  I don't think you've actually looked at the Kconfig files if you're
writing this, because that's precisely what we already do.

arch/arm/Kconfig has a big choice statement in it to select the machine
class, and then it sources the individual arch/arm/*/Kconfig files,
which are themselves wrapped in a

if FOO

foo's options

endif

It's not one huge big "let's source everything and hope people ignore
options which don't apply to their platform" that you seem to be implying
we are doing.

The big problem with doing away with the defconfig files is more to do
with what happens _outside_ of arch/arm.

At one time, I was phasing IDE out, and didn't want to see the "IDE"
configuration options on platforms which either never had IDE support
or had had IDE support removed - unfortunately I was overruled by the
IDE/ATA developers and the conditionals we had went away.

That's just one instance, but consider when you're presented with
thousands of driver and filesystem configuration options as is the
case with modern kernels.  How do you find the few options you need
to get to a point that the kernel you've built is actually useful?

Anyway, I thought we were discussing _defconfig_ files, not Kconfig
files...

What we _could_ to is introduce a:

config STD_CONFIG
	bool "Enable me to generate a standard configuration for your platform"

and then have platforms conditionally select everything that's
appropriate for their use.  That provides a way to avoid the ages old
issue of select forcing options on, but the user still being presented
with the option and being told the only possible value for it is 'y'.

And yes, it _is_ necessary - because if you want to turn off something
on the platform - eg, you're not using MMC and MMC fails to build -
you can still end up with a working configuration at the end of the
day.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 7:48 am)
Re: ARM defconfig files, Tony Lindgren, (Thu Jun 3, 9:46 am)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 9:53 am)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 11:10 am)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 11:13 am)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 11:18 am)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 11:20 am)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 11:21 am)
Re: ARM defconfig files, Al Viro, (Thu Jun 3, 11:30 am)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 11:41 am)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 11:53 am)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 11:53 am)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 11:56 am)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 12:20 pm)
Re: ARM defconfig files, Paul Mundt, (Thu Jun 3, 12:26 pm)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 12:35 pm)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 12:45 pm)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 12:49 pm)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 12:57 pm)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 1:05 pm)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 1:06 pm)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 1:09 pm)
Re: ARM defconfig files, Russell King, (Thu Jun 3, 1:18 pm)
Re: ARM defconfig files, Nicolas Pitre, (Thu Jun 3, 1:20 pm)
Re: ARM defconfig files, Linus Torvalds, (Thu Jun 3, 1:31 pm)
Re: ARM defconfig files, Nicolas Pitre, (Thu Jun 3, 1:34 pm)
Re: ARM defconfig files, Tony Lindgren, (Thu Jun 3, 2:17 pm)
Re: ARM defconfig files, Tony Lindgren, (Thu Jun 3, 2:33 pm)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 2:48 pm)
Re: ARM defconfig files, Grant Likely, (Thu Jun 3, 3:15 pm)
Re: ARM defconfig files, Daniel Walker, (Thu Jun 3, 3:24 pm)
Re: ARM defconfig files, Nicolas Pitre, (Thu Jun 3, 3:45 pm)
Re: ARM defconfig files, Kevin Hilman, (Thu Jun 3, 5:23 pm)
Re: ARM defconfig files, Paul Mackerras, (Thu Jun 3, 5:36 pm)
Re: ARM defconfig files, Benjamin Herrenschmidt, (Thu Jun 3, 6:02 pm)
Re: ARM defconfig files, Benjamin Herrenschmidt, (Thu Jun 3, 6:06 pm)
Re: ARM defconfig files, Tony Lindgren, (Thu Jun 3, 9:53 pm)
Re: ARM defconfig files, Tony Lindgren, (Thu Jun 3, 9:59 pm)
Re: ARM defconfig files, Felipe Balbi, (Thu Jun 3, 10:18 pm)
Re: ARM defconfig files, Tony Lindgren, (Thu Jun 3, 10:29 pm)
Re: ARM defconfig files, Geert Uytterhoeven, (Thu Jun 3, 11:30 pm)
Re: ARM defconfig files, Geert Uytterhoeven, (Thu Jun 3, 11:53 pm)
Re: ARM defconfig files, Benjamin Herrenschmidt, (Fri Jun 4, 1:52 am)
Re: ARM defconfig files, Catalin Marinas, (Fri Jun 4, 4:31 am)
Re: ARM defconfig files, Grant Likely, (Fri Jun 4, 5:39 am)
Re: ARM defconfig files, Felipe Contreras, (Sat Jun 5, 6:47 am)
Re: ARM defconfig files, Felipe Contreras, (Sat Jun 5, 7:12 am)
Re: ARM defconfig files, Linus Torvalds, (Sat Jun 5, 7:39 am)
Re: ARM defconfig files, Felipe Contreras, (Sat Jun 5, 9:39 am)
Re: ARM defconfig files, david, (Sat Jun 5, 8:28 pm)
Re: ARM defconfig files, david, (Sat Jun 5, 8:53 pm)
Re: ARM defconfig files, Catalin Marinas, (Tue Jun 8, 8:30 am)
Re: ARM defconfig files, Daniel Walker, (Tue Jun 8, 9:37 am)
Re: ARM defconfig files, Uwe Kleine-König, (Mon Jun 14, 1:32 am)
Re: ARM defconfig files, Uwe Kleine-König, (Wed Jun 30, 3:40 am)
Re: ARM defconfig files, Uwe Kleine-König, (Mon Jul 12, 8:55 am)
Re: ARM defconfig files, Linus Torvalds, (Mon Jul 12, 9:51 am)
Re: ARM defconfig files, Russell King - ARM Linux, (Mon Jul 12, 10:32 am)
Re: ARM defconfig files, Linus Torvalds, (Mon Jul 12, 10:40 am)
Re: ARM defconfig files, Uwe Kleine-König, (Mon Jul 12, 11:50 am)
Re: ARM defconfig files, Linus Torvalds, (Mon Jul 12, 12:04 pm)
Re: ARM defconfig files, Nicolas Pitre, (Mon Jul 12, 12:09 pm)
Re: ARM defconfig files, Nicolas Pitre, (Mon Jul 12, 12:17 pm)
Re: ARM defconfig files, Linus Torvalds, (Mon Jul 12, 12:34 pm)
Re: ARM defconfig files, Grant Likely, (Mon Jul 12, 12:50 pm)
Re: ARM defconfig files, Uwe Kleine-König, (Mon Jul 12, 12:59 pm)
Re: ARM defconfig files, Russell King - ARM Linux, (Mon Jul 12, 1:06 pm)
Re: ARM defconfig files, Nicolas Pitre, (Mon Jul 12, 1:14 pm)
Re: ARM defconfig files, Nicolas Pitre, (Mon Jul 12, 1:29 pm)
Re: ARM defconfig files, Arnd Bergmann, (Mon Jul 12, 1:31 pm)
Re: ARM defconfig files, Nicolas Pitre, (Mon Jul 12, 1:50 pm)
Re: ARM defconfig files, Linus Torvalds, (Mon Jul 12, 2:54 pm)
Re: ARM defconfig files, David Brown, (Mon Jul 12, 4:05 pm)
Re: ARM defconfig files, Linus Torvalds, (Mon Jul 12, 4:18 pm)
Re: ARM defconfig files, David Brown, (Mon Jul 12, 4:34 pm)
Re: ARM defconfig files, Nicolas Pitre, (Mon Jul 12, 5:55 pm)
Re: ARM defconfig files, Uwe Kleine-König, (Tue Jul 13, 12:07 am)
optimized script [Was: ARM defconfig files], Uwe Kleine-König, (Tue Jul 13, 1:07 am)
Re: optimized script [Was: ARM defconfig files], Olof Johansson, (Tue Jul 13, 11:04 am)
Re: ARM defconfig files, Rob Landley, (Tue Jul 13, 11:32 am)
Re: ARM defconfig files, Grant Likely, (Tue Jul 13, 11:32 am)
Re: optimized script [Was: ARM defconfig files], Nicolas Pitre, (Tue Jul 13, 4:39 pm)
Re: ARM defconfig files, Felipe Contreras, (Wed Jul 14, 2:13 am)
Re: ARM defconfig files, Felipe Contreras, (Wed Jul 14, 2:21 am)
Re: ARM defconfig files, Uwe Kleine-König, (Wed Jul 14, 6:20 am)
Re: ARM defconfig files, Tony Luck, (Wed Jul 14, 10:37 am)