diff options
author | Matt Madison <matt@madison.systems> | 2016-01-06 04:21:35 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-11 23:26:31 +0000 |
commit | e265fbba3c5db8b1600276e10dd1f3cee7973327 (patch) | |
tree | d0db3aff8fc254f30b54d714be63a2dd85f969fa /meta | |
parent | 4aeb69d35f1fe3b4882160c5c4884a5ab808f601 (diff) | |
download | poky-e265fbba3c5db8b1600276e10dd1f3cee7973327.tar.gz |
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.
(From OE-Core rev: 7158c79a70e3d820c9701dacfa7206d13f95845a)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package_deb.bbclass | 2 |
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 () { | |||
161 | return l2 | 161 | return l2 |
162 | 162 | ||
163 | ctrlfile.write("Package: %s\n" % pkgname) | 163 | ctrlfile.write("Package: %s\n" % pkgname) |
164 | if d.getVar('PACKAGE_ARCH', True) == "all": | ||
165 | ctrlfile.write("Multi-Arch: foreign\n") | ||
164 | # check for required fields | 166 | # check for required fields |
165 | try: | 167 | try: |
166 | for (c, fs) in fields: | 168 | for (c, fs) in fields: |