Jean-Claude Gervais wrote:
> I'm compiling both an i586 AMD Geode and an arm TS7200
> using the documentation (could be a neat handbook, btw)
> http://www.gentoo.org/proj/en/base/embedded/cross-development.xml
>
> When using xmake to compile a kernel, if I choose from the list of
> canonicalized machine names
> http://www.gentoo.org/proj/en/base/embedded/cross-development.xml#machine_names
I believe you mean xkmake. The list of canonicalized machine names is
not the same as the linux kernel ARCH.
> There are various possibilities, but if I choose i586 and issue the
> following commands:
>
> cd /usr/i586-gentoo-linux-uclibc/usr/src/linux
>
> make ARCH="i586" CROSS_COMPILE="i586-gentoo-linux-uclibc-"
> INSTALL_MOD_PATH="$SYSROOT" menuconfig
>
> I get the error
> Makefile:412:
> /usr/i586-gentoo-linux-uclibc/usr/src/linux-2.6.22-gentoo-r9/arch/i586/Makefile:
> No such file or directory
> make: *** No rule to make target
> `/usr/i586-gentoo-linux-uclibc/usr/src/linux-2.6.22-gentoo-r9/arch/i586/Makefile'.
> Stop.
yep, do this:
ls ${SYSROOT}/usr/src/linux/arch/
x86 32bit = i386
x86 64bit = x86_64 | ia64
beware, there's been some patches submitted to merge i386 and x86_64.
Not sure how that's going to pan out. It'll be after 2.6.24, tho.
> I realize that all machine architectures listed in the article linked
> above are not possible. I assume i386, i486, i586 and i686 must use
> their lowest-common-denominator ancestor, i386.
>
> It might be worth adding a note to the documentation
> http://www.gentoo.org/proj/en/base/embedded/cross-development.xml#xkmake
>
> explaining these and other exceptions.
I don't think the author is around or actively maintaining that page.
fwiw, I think editing the page at g-w.c [1] might be easier. At least
there'll be a collection of info in one spot based on user experience
for a future author of official gentoo docs to work off of. :-)
> My question is this, is the exception (or caveat) I noted valid for ALL
> instances of xmake's usage?
>
> Meaning is it only the kernel that must be treated this way or any
> modules I would compile? Are there times when it is better to invoke
> make with the specific ARCH (in my case i586)?
I believe the above answers this.
> Thank you very much for your help and patience.
No problem.
hth,
Jason.
[1] - http://gentoo-wiki.com/Embedded_Gentoo
--
[EMAIL PROTECTED] mailing list