1 |
Jean-Claude Gervais wrote: |
2 |
> I'm compiling both an i586 AMD Geode and an arm TS7200 |
3 |
> using the documentation (could be a neat handbook, btw) |
4 |
> http://www.gentoo.org/proj/en/base/embedded/cross-development.xml |
5 |
> |
6 |
> When using xmake to compile a kernel, if I choose from the list of |
7 |
> canonicalized machine names |
8 |
> http://www.gentoo.org/proj/en/base/embedded/cross-development.xml#machine_names |
9 |
|
10 |
I believe you mean xkmake. The list of canonicalized machine names is |
11 |
not the same as the linux kernel ARCH. |
12 |
|
13 |
> There are various possibilities, but if I choose i586 and issue the |
14 |
> following commands: |
15 |
> |
16 |
> cd /usr/i586-gentoo-linux-uclibc/usr/src/linux |
17 |
> |
18 |
> make ARCH="i586" CROSS_COMPILE="i586-gentoo-linux-uclibc-" |
19 |
> INSTALL_MOD_PATH="$SYSROOT" menuconfig |
20 |
> |
21 |
> I get the error |
22 |
> Makefile:412: /usr/i586-gentoo-linux-uclibc/usr/src/linux-2.6.22-gentoo-r9/arch/i586/Makefile: No such file or directory |
23 |
> make: *** No rule to make target |
24 |
> `/usr/i586-gentoo-linux-uclibc/usr/src/linux-2.6.22-gentoo-r9/arch/i586/Makefile'. Stop. |
25 |
|
26 |
yep, do this: |
27 |
|
28 |
ls ${SYSROOT}/usr/src/linux/arch/ |
29 |
|
30 |
x86 32bit = i386 |
31 |
x86 64bit = x86_64 | ia64 |
32 |
|
33 |
beware, there's been some patches submitted to merge i386 and x86_64. |
34 |
Not sure how that's going to pan out. It'll be after 2.6.24, tho. |
35 |
|
36 |
> I realize that all machine architectures listed in the article linked |
37 |
> above are not possible. I assume i386, i486, i586 and i686 must use |
38 |
> their lowest-common-denominator ancestor, i386. |
39 |
> |
40 |
> It might be worth adding a note to the documentation |
41 |
> http://www.gentoo.org/proj/en/base/embedded/cross-development.xml#xkmake |
42 |
> |
43 |
> explaining these and other exceptions. |
44 |
|
45 |
I don't think the author is around or actively maintaining that page. |
46 |
fwiw, I think editing the page at g-w.c [1] might be easier. At least |
47 |
there'll be a collection of info in one spot based on user experience |
48 |
for a future author of official gentoo docs to work off of. :-) |
49 |
|
50 |
> My question is this, is the exception (or caveat) I noted valid for ALL |
51 |
> instances of xmake's usage? |
52 |
> |
53 |
> Meaning is it only the kernel that must be treated this way or any |
54 |
> modules I would compile? Are there times when it is better to invoke |
55 |
> make with the specific ARCH (in my case i586)? |
56 |
|
57 |
I believe the above answers this. |
58 |
|
59 |
> Thank you very much for your help and patience. |
60 |
|
61 |
No problem. |
62 |
|
63 |
hth, |
64 |
|
65 |
Jason. |
66 |
|
67 |
|
68 |
[1] - http://gentoo-wiki.com/Embedded_Gentoo |
69 |
-- |
70 |
gentoo-embedded@g.o mailing list |