{PACKAGE,TARGET_{,PACKAGE_,EXTRA_}}ARCH blues
Please follow me through here:
In my case, an IXP4xx target, with big-endian ARCH_BYTE_SEX I have this:
from conf/machine/ixp4xx.conf sets:
TARGET_ARCH = armebTARGET_PACKAGE_ARCH = armv5teb
conf/machine/ixp4xx.conf then sets (overrides):PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"
conf/bitbake.conf then sets PACKAGE_ARCHS to this:
PACKAGE_ARCHS = "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE}"
(note, it does not include TARGET_PACKAGE_ARCH, i.e. armv5teb is not there).
so later 'rootfs_ipk' sets ipkgarchs without 'armv5teb' in there.
classes/rootfs_ipk.bbclass:45: ipkgarchs="${PACKAGE_ARCHS}"
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?
Regards,
Signature · 1 line
Leon
Quoted 14 lines · Leon Woestenberg
In my case, an IXP4xx target, with big-endian
ARCH_BYTE_SEXI have this:from
conf/machine/ixp4xx.confsets:
TARGET_ARCH= armebTARGET_PACKAGE_ARCH= armv5teb
conf/machine/ixp4xx.confthen sets (overrides):PACKAGE_EXTRA_ARCHS= "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"
conf/bitbake.confthen setsPACKAGE_ARCHSto this:
PACKAGE_ARCHS= "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE}"
[...]
Quoted 7 lines
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_ARCHbe appended byTARGET_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}"
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...
Regards,
Richard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard Purdie schreef:
Quoted 10 lines · Leon Woestenberg
Quoted 9 lines
In my case, an IXP4xx target, with big-endian
ARCH_BYTE_SEXI have this:from
conf/machine/ixp4xx.confsets:
TARGET_ARCH= armebTARGET_PACKAGE_ARCH= armv5teb
conf/machine/ixp4xx.confthen 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.
Quoted 13 lines
Quoted 4 lines
conf/bitbake.confthen setsPACKAGE_ARCHSto this:
PACKAGE_ARCHS= "all any noarch ${TARGET_ARCH} ${PACKAGE_EXTRA_ARCHS} ${MACHINE}"[...]
Quoted 7 lines
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_ARCHbe appended byTARGET_PACKAGE_ARCH?
Quoted 7 lines
conf/machine/include/ixp4xx.confis 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 setPACKAGE_EXTRA_ARCHSto 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.
Quoted 8 lines
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_ARCHScontaining ${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-----
Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
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_ARCHScontaining ${MACHINE} so it might want to override that...I think
conf/machine/ixp4xx.confshouldn't be used, butconf/machine/ixp4xxbe.confor ixp4xxle.conf should be used instead. Each of those machines should setPACKAGE_EXTRA_ARCHindependantly.
Agreed.
-- Rod
Hello,
Quoted 4 lines · Rod Whitby
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
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.
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
This machine might not want
PACKAGE_ARCHScontaining ${MACHINE} so it might want to override that...I think
conf/machine/ixp4xx.confshouldn't be used, butconf/machine/ixp4xxbe.confor ixp4xxle.conf should be used instead. Each of those machines should setPACKAGE_EXTRA_ARCHindependantly.Agreed.
Then I understand that ixp4xxbe.conf must add armv5teb to this list:
PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"
and that ixp4xxle.conf must add armv5tel to this list:
PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"
If correct, can someone push this in?
Thanks,
Leon.
Signature · 1 line
Leon
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Leon Woestenberg schreef:
Quoted 9 lines
Hello,
Quoted 6 lines · Rod Whitby
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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_ARCHScontaining ${MACHINE} so it might want to override that...
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I think
conf/machine/ixp4xx.confshouldn't be used, butconf/machine/ixp4xxbe.confor ixp4xxle.conf should be used instead. Each of those machines should setPACKAGE_EXTRA_ARCHindependantly.Agreed.
Then I understand that ixp4xxbe.conf must add armv5teb to this list:
PACKAGE_EXTRA_ARCHS= "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"
Nope, ixp4xxbe needs this:
PACKAGE_EXTRA_ARCHS = "armv4eb armv4teb armv5eb armv5teb ixp4xxeb"
Quoted 4 lines
and that ixp4xxle.conf must add armv5tel to this list:
PACKAGE_EXTRA_ARCHS= "armv4 armv4t armv5e armv5te ixp4xx${ARCH_BYTE_SEX}"
PACKAGE_EXTRA_ARCHS = "armv4 armv4t armv5e armv5te ixp4xxle"
I think this should cover all cases.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFfpjQMkyGM64RGpERAlXUAJ9vnJw3Ky/LR5hHpL4EmKfP8HoVJACfR0vj GXYFu+Jn+tl1xd8PtBrwgHg=
=sAbC
-----END PGP SIGNATURE-----