[oe] [PATCH] conf/machine: Add x86_64 machine.

Phil Blundell philb at gnu.org
Mon Dec 21 18:33:50 UTC 2009


On Sun, 2009-12-20 at 18:13 -0800, Khem Raj wrote:
> I was thinking of using amd64 but ARCH has to be
> x86_64 at least for gcc so I think we can not avoid
> it. may be we should make bitbake ignore certain
> overrides like x86_64 if thats possible at all.

I guess the primary variable that gcc actually cares about is
${TARGET_SYS} (which isn't, itself, an OVERRIDE).  It isn't strictly
necessary for the first part of ${TARGET_SYS} to match ${TARGET_ARCH}:
you could, in theory, set TARGET_SYS to "x86_64-unknown-linux-gnu" while
having TARGET_ARCH = "x86-64" or some other, non-underscore-containing,
value.

All that said, I'm not sure that TARGET_ARCH=x86_64 will be much of an
issue in practice.  The only situation where I can immediately think
that it would be problematic would be if both "x86" and "64" were
individually to appear in OVERRIDES for some other reason, and this
doesn't sound especially likely.  There are already plenty of situations
where you can, at least in theory, run into namespace collisions and it
isn't obvious to me that the x86_64 one is especially egregious.

p.






More information about the Openembedded-devel mailing list