summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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.