Re: [PATCH][RFC] x86: add non x86 build configuration

From: Ingo Molnar
Date: Thu Oct 30 2008 - 15:51:59 EST



* Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> A lot of developers develop on x86 architectures, and do things that
> sometimes breaks non x86 archs. This patch adds a debug option to
> turn off all the CONFIG_HAVE_ options that x86 sets. This allows
> developers to easily test their code to make sure that it compiles
> without a lot of the assumptions that x86 makes.
>
> Note: Recently the ftrace code had an issue where a depend was set
> by the wrong select, but that select was not set by all archs.
> This patch catches that issue when compiling on x86.

cool, very nice - thanks Steve!

testing this way scales _far_ better than maintaining a farm of
cross-compilers.

One important detail: could you please flip around the modality of the
option? Right now it's CONFIG_SIMULATE_NON_X86_CONFIGURATION, and that
will be set by allyesconfig. But it has the exact opposite effect of
an "all yes" config.

So please name it something like CONFIG_STANDARD_X86_FEATURES, and
also make it depend on CONFIG_EMBEDDED (only allow it to be turned off
when EMBEDDED is enabled).

ok?

Ingo
--
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/