summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorMatt Madison <matt@madison.systems>2016-01-06 04:21:35 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-11 23:23:17 +0000
commit7158c79a70e3d820c9701dacfa7206d13f95845a (patch)
treee47a6b66da30d802f04ff61a9f294fa5c38573cd /meta/classes
parentc3ee9b12ae704eadf02ff288d8035b5885d6218e (diff)
downloadopenembedded-core-7158c79a70e3d820c9701dacfa7206d13f95845a.tar.gz
openembedded-core-7158c79a70e3d820c9701dacfa7206d13f95845a.tar.bz2
openembedded-core-7158c79a70e3d820c9701dacfa7206d13f95845a.zip
package_deb.bbclass: add 'Multi-Arch: foreign' tag to allarch packages
This tells APT that it can use such packages to resolve dependencies from packages of any architecture in a multilib build. Signed-off-by: Matt Madison <matt@madison.systems> Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_deb.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 8d27adf292..25218d0865 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -161,6 +161,8 @@ python do_package_deb () {
return l2
ctrlfile.write("Package: %s\n" % pkgname)
+ if d.getVar('PACKAGE_ARCH', True) == "all":
+ ctrlfile.write("Multi-Arch: foreign\n")
# check for required fields
try:
for (c, fs) in fields: