diff options
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index b554bae34e..04c0483a2d 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -93,7 +93,7 @@ EOF | |||
93 | 93 | ||
94 | # List must be prefered to least preferred order | 94 | # List must be prefered to least preferred order |
95 | INSTALL_PLATFORM_EXTRA_RPM="" | 95 | INSTALL_PLATFORM_EXTRA_RPM="" |
96 | for each_arch in ${PACKAGE_ARCHS} ; do | 96 | for each_arch in ${MULTILIB_PACKAGE_ARCHS} ${PACKAGE_ARCHS}; do |
97 | INSTALL_PLATFORM_EXTRA_RPM="$each_arch $INSTALL_PLATFORM_EXTRA_RPM" | 97 | INSTALL_PLATFORM_EXTRA_RPM="$each_arch $INSTALL_PLATFORM_EXTRA_RPM" |
98 | done | 98 | done |
99 | export INSTALL_PLATFORM_RPM | 99 | export INSTALL_PLATFORM_RPM |
@@ -207,4 +207,19 @@ python () { | |||
207 | bb.data.setVarFlag('do_rootfs', 'recrdeptask', flags, d) | 207 | bb.data.setVarFlag('do_rootfs', 'recrdeptask', flags, d) |
208 | bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) | 208 | bb.data.setVar('RPM_PREPROCESS_COMMANDS', '', d) |
209 | bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) | 209 | bb.data.setVar('RPM_POSTPROCESS_COMMANDS', '', d) |
210 | |||
211 | ml_package_archs = "" | ||
212 | multilibs = d.getVar('MULTILIBS', True) or "" | ||
213 | for ext in multilibs.split(): | ||
214 | eext = ext.split(':') | ||
215 | if len(eext) > 1 and eext[0] == 'multilib': | ||
216 | localdata = bb.data.createCopy(d) | ||
217 | overrides = localdata.getVar("OVERRIDES", False) + ":virtclass-multilib-" + eext[1] | ||
218 | localdata.setVar("OVERRIDES", overrides) | ||
219 | # TEMP: OVERRIDES isn't working right | ||
220 | localdata.setVar("TUNENAME", localdata.getVar("TUNENAME_virtclass-multilib-" + eext[1], False) or "") | ||
221 | ml_package_archs += localdata.getVar("PACKAGE_ARCHS", True) or "" | ||
222 | bb.note("ML_PACKAGE_ARCHS %s %s %s" % (eext[1], localdata.getVar("PACKAGE_ARCHS", True) or "(none)", overrides)) | ||
223 | bb.data.setVar('MULTILIB_PACKAGE_ARCHS', ml_package_archs, d) | ||
224 | |||
210 | } | 225 | } |