Re: [PATCH] ARM: versatile: automatically pick a board in Kconfig

From: Russell King - ARM Linux
Date: Tue Mar 06 2012 - 18:13:16 EST


On Tue, Mar 06, 2012 at 03:49:22PM -0700, mathieu.poirier@xxxxxxxxxx wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The versatile platform supports building any combination of the
> three board types (AB, PB, DT), but at least one of them has
> to be enabled. This adds the necessary Kconfig statement to
> enforce that at least one of the three is selected.

This approach to 'fixing' the Kconfig doesn't scale particularly well
when we've got lots of platforms to deal with.

I much prefer using KALLCONFIG= to seed allno/allyes/allmod/rand configs.
If you want to target a particular SoC you have to do that anyway. And
you have to use that to ensure that you get a sane config state so that
Kconfig doesn't try and ask for the PHYS_OFFSET value - it will decide
to make that empty and then refuse to reprocess the Kconfig when you
try to build the kernel.

So I don't think there's any point to adding stuff like this.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/