summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-05-16 17:04:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-17 07:07:21 +0100
commit11c78268a2e9d333d615ce01b5a5bdc3d5546850 (patch)
tree88cd66f3c8ba52d7b4532d057114811b383b99ff
parente9d132c25c7e1feca1d078b0891c0f4baba70f81 (diff)
downloadopenembedded-core-contrib-11c78268a2e9d333d615ce01b5a5bdc3d5546850.tar.gz
openembedded-core-contrib-11c78268a2e9d333d615ce01b5a5bdc3d5546850.tar.bz2
openembedded-core-contrib-11c78268a2e9d333d615ce01b5a5bdc3d5546850.zip
packagegroup-cross-canadian: repackage when TUNE_ARCH changes
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
index d551147b5a..3b430c0814 100644
--- a/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-cross-canadian.bb
@@ -16,3 +16,9 @@ RDEPENDS_${PN} = "\
${@all_multilib_tune_values(d, 'GDB')} \
meta-environment-${MACHINE} \
"
+
+# When TUNE_ARCH changes but MACHINE does not (for example when a machine definition is updated),
+# cross-canadian.bbclass prevents variable dependency propagation to TRANSLATED_TARGET_ARCH
+# This will result in erroneous reuse of previous sstate packages. The following line
+# establishes a direct dependency instead.
+do_package[vardeps] += "TUNE_ARCH"