Re: kbuild feature/question: default ARCH



On Tue, Feb 13, 2007 at 10:06:19PM -0800, Randy Dunlap wrote:
Hi,

I'd like for kbuild to default ARCH to the already-symlinked
arch in include/asm-$(ARCH) if ARCH is not specified on the
command line or in the environment.
Another approach I have been toying with previously was to
include ARCH in .config. But I somehow failed
to get it working and it went on my TODO list.

If kconfig get extended to so it can include Kconfig
files for all archs then it could be a Kconfig
option like anything else to select architecture
and this would also solve your issue.

As for the "export ARCH=i386" proposal this is of no
use for people crosscompiling a lot.
Think of the 'Al Viro' setup with crosscompile for 5+
different architectures.

But as I have no patches this is just cheap talk for now.

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



Relevant Pages

  • Re: Just a thought: Kconfig & architecture command
    ... > the sa1100 architecture. ... In Kconfig this could then look like: ... The ARCH_ prefix already says that it's an arch symbol and you ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [RFC] Introduce __ARCH_WANT_SYS_SYSFS
    ... >>> It can be done with Kconfig. ... >>> syscalls are enabled and disabled across architectures. ... The arch Kconfig files are quite non-uniform compared to unistd.h ... cross arch patch applied is likely to be more difficult. ...
    (Linux-Kernel)
  • Re: 2.6.15-rc5-rt1 will not compile (was Re: 2.6.14-rt15: cannot build with !PREEMPT_RT)
    ... > Looks like Ingo has a generic rwsem to work with, ... > which won't compile as you've seen. ... > and every arch and change its Kconfig to do it properly. ...
    (Linux-Kernel)
  • Re: [PATCH 0/2] ftrace: fixes for PPC
    ... There are other arch that support ftrace as well like sh or sparc64 ... on Kconfig only for PowerPC. ...
    (Linux-Kernel)
  • [PATCH] Convert sigaction to act like other unices
    ... Here's a patch that converts all architectures to behave like other unix ... architecture, since it was the only one that already behaves this way! ... happen to have a compiler for every arch that Linux supports). ... static inline void syscall_restart(unsigned long orig_i0, struct pt_regs *regs, ...
    (Linux-Kernel)