public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-embedded] xmake ARCH options
@ 2007-11-06 18:44 Jean-Claude Gervais
  2007-11-06 19:26 ` Jason
  0 siblings, 1 reply; 5+ messages in thread
From: Jean-Claude Gervais @ 2007-11-06 18:44 UTC (permalink / raw
  To: Gentoo-Embedded

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

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.

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.

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)?

Thank you very much for your help and patience.


-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] xmake ARCH options
  2007-11-06 18:44 [gentoo-embedded] xmake ARCH options Jean-Claude Gervais
@ 2007-11-06 19:26 ` Jason
  2007-11-06 21:18   ` Philippe Bertin
  0 siblings, 1 reply; 5+ messages in thread
From: Jason @ 2007-11-06 19:26 UTC (permalink / raw
  To: gentoo-embedded

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
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* g-e docs update was: Re: [gentoo-embedded] xmake ARCH options
  2007-11-06 21:18   ` Philippe Bertin
@ 2007-11-06 20:31     ` Jason
  2007-12-24 21:40     ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Jason @ 2007-11-06 20:31 UTC (permalink / raw
  To: gentoo-embedded

Philippe Bertin wrote:
> Hello,
> 
> Regarding
> 
>> I believe you mean xkmake.  The list of canonicalized machine names is
>> not the same as the linux kernel ARCH.
>>  
>>
> I tend to agree with J-C in saying that
> 
>>> 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.
>>>   
> as I fought the same battle recently  :) All this while being quite
> impressed on the overall quality of the Gentoo documentation.

While I agree with your sentiment, I've seen several requests to update
this doc, including mine, all to no avail.  Which isn't a big deal, the
author obviously isn't involved with it anymore.  Which is why I said
the following:

Jason wrote:
> 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.  :-)
[snip]
> [1] - http://gentoo-wiki.com/Embedded_Gentoo

As much as I hate web2.0 crap, I've found wiki's to be indispensable for
overcoming this exact problem.

thx,

Jason.
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] xmake ARCH options
  2007-11-06 19:26 ` Jason
@ 2007-11-06 21:18   ` Philippe Bertin
  2007-11-06 20:31     ` g-e docs update was: " Jason
  2007-12-24 21:40     ` Mike Frysinger
  0 siblings, 2 replies; 5+ messages in thread
From: Philippe Bertin @ 2007-11-06 21:18 UTC (permalink / raw
  To: gentoo-embedded

Hello,

Regarding

>I believe you mean xkmake.  The list of canonicalized machine names is
>not the same as the linux kernel ARCH.
>  
>
I tend to agree with J-C in saying that

>>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.
>>    
>>
as I fought the same battle recently  :) All this while being quite 
impressed on the overall quality of the Gentoo documentation.

Kind regards,

PhB
-- 
gentoo-embedded@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-embedded] xmake ARCH options
  2007-11-06 21:18   ` Philippe Bertin
  2007-11-06 20:31     ` g-e docs update was: " Jason
@ 2007-12-24 21:40     ` Mike Frysinger
  1 sibling, 0 replies; 5+ messages in thread
From: Mike Frysinger @ 2007-12-24 21:40 UTC (permalink / raw
  To: gentoo-embedded; +Cc: Philippe Bertin

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

On Tuesday 06 November 2007, Philippe Bertin wrote:
> >I believe you mean xkmake.  The list of canonicalized machine names is
> >not the same as the linux kernel ARCH.
>
> I tend to agree with J-C in saying that
>
> >>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.
>
> as I fought the same battle recently  :) All this while being quite
> impressed on the overall quality of the Gentoo documentation.

the Gentoo embedded handbook did mention that the portage/tuple values do not 
match the kernel, but ive added some more stuff to make it explicit.  
however, i dont plan on adding a full list mapping the three distinct sets.  
the kernel has been changing arch values over time (ppc and ppc64 were 
unified into ppc, i386 and x86_64 were unified into x86, ...), so instead i 
described how you can discover the value yourself.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-24 21:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-06 18:44 [gentoo-embedded] xmake ARCH options Jean-Claude Gervais
2007-11-06 19:26 ` Jason
2007-11-06 21:18   ` Philippe Bertin
2007-11-06 20:31     ` g-e docs update was: " Jason
2007-12-24 21:40     ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox