[PATCH v2] ARM: Kconfig: Do not force selection of ARCH_VEXPRESS by ARCH_MULTI_V7

Russell King - ARM Linux linux at arm.linux.org.uk
Wed Jan 2 18:15:13 EST 2013


On Wed, Jan 02, 2013 at 09:03:52PM -0200, Fabio Estevam wrote:
> On Wed, Jan 2, 2013 at 8:59 PM, Russell King - ARM Linux
> <linux at arm.linux.org.uk> wrote:
> > On Tue, Nov 20, 2012 at 03:18:38PM -0200, Fabio Estevam wrote:
> >> diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
> >> index b9f38e3..aa46be8 100644
> >> --- a/arch/arm/kernel/vmlinux.lds.S
> >> +++ b/arch/arm/kernel/vmlinux.lds.S
> >> @@ -310,4 +310,6 @@ SECTIONS
> >>   * binutils is too old (for other reasons as well)
> >>   */
> >>  ASSERT((__proc_info_end - __proc_info_begin), "missing CPU support")
> >> +#ifndef CONFIG_ARCH_MULTIPLATFORM
> >>  ASSERT((__arch_info_end - __arch_info_begin), "no machine record defined")
> >> +#endif
> >
> > This is wrong.  So you want a kernel build which produces an unbootable
> > kernel (because it contains absolutely no platform support of any kind,
> > not even any DT platform support) to succeed?
> 
> Ok, what about the first version?
> https://patchwork.kernel.org/patch/1774521/

That seems to be better because it leaves the desire for an unbootable
kernel to be a build failure.

However, it allows the multi-platform case to end up with a configuration
where such a kernel can be generated, which is something Arnd wants to
avoid as it messes up allnoconfig and randconfig builds.

What we need to come up with is some kind of "default platform" which is
always built into the kernel.  Will had some ideas about that for the
virtualization stuff, but I think there were objections to that over it
being modelled on Versatile Express.  If that can be sorted, then we
have a solution to this problem.

We _should_ be aiming to get to that state anyway, where the kernel
doesn't need to know about platform X, Y or Z but just uses the
description in DT which tells it where devices A, B, and C are and how
they relate to the rest of the system.



More information about the linux-arm-kernel mailing list