summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-09-02 11:38:43 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-02 18:15:31 +0100
commit7046e28afc602b1cd981ed76dc9467d0869c098c (patch)
tree32462bee50dfde2ee158c28b224fbadadf941ba2 /meta/classes
parent37285ab358c1ff2935e5ae686a80e5f19d998d6b (diff)
downloadpoky-7046e28afc602b1cd981ed76dc9467d0869c098c.tar.gz
rootfs_rpm: setting DEFAULTTUNE for multilib archs
To get the MULTILIB_PACKAGE_ARCHS, we need to get the corresponding DEFAULTTUNE value. This fixes the multilib arch directory missing issue in solvedb-ml_archs.conf. (From OE-Core rev: 54306ff373e13696637b547fa1514e0ef8633248) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rootfs_rpm.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 7f24b9cfbd..135ca75fa5 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -215,6 +215,9 @@ python () {
215 eext = ext.split(':') 215 eext = ext.split(':')
216 if len(eext) > 1 and eext[0] == 'multilib': 216 if len(eext) > 1 and eext[0] == 'multilib':
217 localdata = bb.data.createCopy(d) 217 localdata = bb.data.createCopy(d)
218 default_tune = localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)
219 if default_tune:
220 localdata.setVar("DEFAULTTUNE", default_tune)
218 ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" 221 ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or ""
219 #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) 222 #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides))
220 bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) 223 bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d)