[oe] {PACKAGE,TARGET_{,PACKAGE_,EXTRA_}}ARCH blues

Koen Kooi koen at dominion.kabel.utwente.nl
Mon Dec 11 08:21:47 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Purdie schreef:
> On Sat, 2006-12-09 at 00:23 +0100, Leon Woestenberg wrote:
>> In my case, an IXP4xx target, with big-endian ARCH_BYTE_SEX I have this:
>>
>> from conf/machine/ixp4xx.conf sets:
>>
>> TARGET_ARCH = armeb
>> TARGET_PACKAGE_ARCH = armv5teb
>>
>> conf/machine/ixp4xx.conf then sets (overrides):
>> PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"

This is bogus since the first 4 entries are LE while the last one can be BE.

>> conf/bitbake.conf then sets PACKAGE_ARCHS to this:
>>
>> PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS}
>> ${MACHINE}"
> [...]
>> end I end up with a full set of 'armv5teb' packages, which fail to
>> install to my image.
>>
>> I can work around this by twiddling with the variable definitions and
>> settings, but I rather want to discuss what is the proper fix here?
>>
>> Should PACKAGE_EXTRA_ARCH be appended by TARGET_PACKAGE_ARCH?
> 
> conf/machine/include/ixp4xx.conf is the only file in my openembedded
> directory which references this "TARGET_PACKAGE_ARCH" variable so its an
> ixp4xx issue. The name sounds very confused so I'd suggest just getting
> rid of it and set PACKAGE_EXTRA_ARCHS to contain everything you need. An
> example might be:
> 
> PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te{ARCH_BYTE_SEX} ixp4xx{ARCH_BYTE_SEX}"

armv5tele and armv5tebe don't exist in OE.

> which probably isn't right but you get the idea. 
> 
> Someone familiar with what the ixp builds should be doing should really
> look at this. I've cc'd rwhitby who should know the right person to deal
> with this.
> 
> This machine might not want PACKAGE_ARCHS containing ${MACHINE} so it
> might want to override that...

I think conf/machine/ixp4xx.conf shouldn't be used, but conf/machine/ixp4xxbe.conf or
ixp4xxle.conf should be used instead. Each of those machines should set PACKAGE_EXTRA_ARCH
independantly.

regards,

Koen


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFfRUbMkyGM64RGpERAqWmAKCEJbe2xFAPOwtMI0JBsqUu0uZdBgCgi5Nd
Jyb4OTX2iF5H59YyJpFJKKg=
=po3W
-----END PGP SIGNATURE-----




More information about the Openembedded-devel mailing list