diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-25 20:23:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-26 10:00:27 +0000 |
commit | 591fa7c1ab9e9ff75fdce602c77ecdeda3a255d9 (patch) | |
tree | 61c607a5c2b749978461dd67aa9cba71156bad08 /meta/recipes-core/packagegroups | |
parent | 7dd91402b719ac62b51088f234354f82bfa9c4b6 (diff) | |
download | openembedded-core-591fa7c1ab9e9ff75fdce602c77ecdeda3a255d9.tar.gz openembedded-core-591fa7c1ab9e9ff75fdce602c77ecdeda3a255d9.tar.bz2 openembedded-core-591fa7c1ab9e9ff75fdce602c77ecdeda3a255d9.zip |
packagegroup/allarch: Convert to use allarch class
Currently there is some odd behaviour of the packagegroup class in relation
to sstate since it sets PACKAGE_ARCH = "all" but does not use the allarch class
leading to it being undetected by sstate.
Previously it was not possible to use allarch as the recipe couldn't "undo"
settings made by the allarch class. Since this no longer happens when
PACKAGE_ARCH != all, we can use the allarch class.
This patch also fixes up one case we need to preserve TRANSLATED_TARGET_ARCH
and ensures sstate only assumes allarch when PACKAGE_ARCH is "all".
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/packagegroups')
-rw-r--r-- | meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb index cb2fb1ad66..a6c6c362e3 100644 --- a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb +++ b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb @@ -3,6 +3,9 @@ PN = "packagegroup-cross-canadian-${TRANSLATED_TARGET_ARCH}" PR = "r0" LICENSE = "MIT" +# Save TRANSLATED_TARGET_ARCH before allarch tramples it +TRANSLATED_TARGET_ARCH = "${@d.getVar('TUNE_ARCH', True).replace('_', '-')}" + inherit cross-canadian packagegroup PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1" |