summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2022-10-05 15:07:54 -0300
committerGitHub <noreply@github.com>2022-10-05 15:07:54 -0300
commitfdc2e95e9b3f6ce9ff124145476398cede71ea3a (patch)
tree1c97ecccfa057881d5114a6bd5d505e4bd0d2f85
parent28ae8f75e667becda70cc499df5e26d9163af4b6 (diff)
parent0f8777c13d11aae58bb2796dda40749d4e47106e (diff)
downloadmeta-freescale-fdc2e95e9b3f6ce9ff124145476398cede71ea3a.tar.gz
Merge pull request #1251 from Freescale/backport-1213-to-kirkstone
[Backport kirkstone] Fix the image/SDK generation for packages built for MACHINE_SOCARCH with MULTILIB support
-rw-r--r--classes/fsl-dynamic-packagearch.bbclass11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/fsl-dynamic-packagearch.bbclass b/classes/fsl-dynamic-packagearch.bbclass
index 9fcf37be..6cb0c0a9 100644
--- a/classes/fsl-dynamic-packagearch.bbclass
+++ b/classes/fsl-dynamic-packagearch.bbclass
@@ -54,6 +54,17 @@ python __anonymous () {
54 if not machine_socarch in cur_package_archs: 54 if not machine_socarch in cur_package_archs:
55 d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % machine_socarch) 55 d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % machine_socarch)
56 56
57 multilib_variants = (d.getVar("MULTILIB_VARIANTS") or "").split()
58 for variant in multilib_variants:
59 defaulttune = d.getVar("DEFAULTTUNE:virtclass-multilib-" + variant)
60 if defaulttune:
61 package_extra_archs_tune_archs = (d.getVar("PACKAGE_EXTRA_ARCHS:tune-" + defaulttune) or "").split()
62 arch_suffix = d.getVar("MACHINE_SOCARCH_SUFFIX")
63 for arch in package_extra_archs_tune_archs:
64 socarch = arch + arch_suffix
65 if not socarch in cur_package_archs:
66 d.appendVar("PACKAGE_EXTRA_ARCHS", " %s" % socarch )
67
57 if d.getVar("TUNE_ARCH") == "arm": 68 if d.getVar("TUNE_ARCH") == "arm":
58 # For ARM we have two possible machine_socarch values, one for the arm and one for the thumb instruction set 69 # For ARM we have two possible machine_socarch values, one for the arm and one for the thumb instruction set
59 # add the other value to extra archs also, so that a image recipe searches both for packages. 70 # add the other value to extra archs also, so that a image recipe searches both for packages.