summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2011-08-16 16:26:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-17 15:14:56 +0100
commit57bd62ad5c623216b50393841e1e75c867894765 (patch)
treeed020390a1f8c9839b61982d0c0453f60233df81 /meta/classes/package.bbclass
parentf759bde4f7c3a0f82a0a910df2ead755ae989ac2 (diff)
downloadpoky-57bd62ad5c623216b50393841e1e75c867894765.tar.gz
package(_ipk).bbclass: opkg using ALL_MULTILIB_PACKAGE_ARCHS
[YOCTO #1345] The new variable ALL_MULTILIB_PACKAGE_ARCHS contains all the values of PACKAGE_ARCHS for each multilib variants. The opkg backend now uses this new value insteald of the PACKAGE_ARCHS to update the opkg indexes and to generate the opkg configuration files. This allows the normal packages and multilib packages may be installed into the same rootfs. (From OE-Core rev: b774bf44ef004276da12a83ebd69715c00b596ac) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass13
1 files changed, 2 insertions, 11 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 100f465d9c..96675dedb6 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -46,6 +46,8 @@ PKGDEST = "${WORKDIR}/packages-split"
46 46
47LOCALE_SECTION ?= '' 47LOCALE_SECTION ?= ''
48 48
49ALL_MULTILIB_PACKAGE_ARCHS = "${@all_multilib_tune_values(d, 'PACKAGE_ARCHS')}"
50
49# rpm is used for the per-file dependency identification 51# rpm is used for the per-file dependency identification
50PACKAGE_DEPENDS += "rpm-native" 52PACKAGE_DEPENDS += "rpm-native"
51 53
@@ -184,17 +186,6 @@ python () {
184 bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d) 186 bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d)
185 else: 187 else:
186 d.setVar("PACKAGERDEPTASK", "") 188 d.setVar("PACKAGERDEPTASK", "")
187
188 multilib_archs = []
189 multilibs= d.getVar('MULTILIBS', True) or ""
190 if multilibs:
191 for ext in multilibs.split():
192 eext = ext.split(':')
193 if len(eext) > 1:
194 if eext[0] == 'multilib':
195 multilib_archs.append('ml' + eext[1])
196
197 d.setVar("MULTILIB_ARCHS", ' '.join(multilib_archs))
198} 189}
199 190
200def splitfile(file, debugfile, debugsrcdir, d): 191def splitfile(file, debugfile, debugsrcdir, d):