]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_rpm: setting DEFAULTTUNE for multilib archs
authorDongxiao Xu <dongxiao.xu@intel.com>
Fri, 2 Sep 2011 03:38:43 +0000 (11:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Sep 2011 17:13:36 +0000 (18:13 +0100)
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.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/classes/rootfs_rpm.bbclass

index 7f24b9cfbd98ec1b31704b5aef13fad28b60f9cb..135ca75fa595410b40315f708bc23d5c85bd5c8a 100644 (file)
@@ -215,6 +215,9 @@ python () {
         eext = ext.split(':')
         if len(eext) > 1 and eext[0] == 'multilib':
             localdata = bb.data.createCopy(d)
+            default_tune = localdata.getVar("DEFAULTTUNE_virtclass-multilib-" + eext[1], False)
+            if default_tune:
+                localdata.setVar("DEFAULTTUNE", default_tune)
             ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or ""
             #bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides))
     bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d)