shouldn't asm-generic/ be arch-independent?

Robert P. J. Day rpjday at
Sun Nov 18 13:31:06 EST 2012

  there is one more oddity(?) with the way the linker "lds" files are
set up.  if i read this correctly (and i could be wrong), here's

#undef i386
#include <asm-generic/>

  which gets us to that included file, which contains:

#if defined CONFIG_ARCH_IMX25 || \
        defined CONFIG_ARCH_IMX35 || \
        defined CONFIG_ARCH_IMX51 || \
        defined CONFIG_ARCH_IMX53 || \
        defined CONFIG_ARCH_IMX6 || \
        defined CONFIG_X86 || \       <-- that will be true, correct?
        defined CONFIG_ARCH_EP93XX
#include <mach/>

  which finally takes us to
arch/x86/mach-i386/include/mach/, which is nothing more
than a collection of macro definitions.  there's no "pre-image"
content to be incorporated into the final image -- it's just
preprocessor content.  so why isn't all that simply at the beginning
of the main x86 file?

  or am i missing something?



Robert P. J. Day                                 Ottawa, Ontario, CANADA


More information about the barebox mailing list