summaryrefslogtreecommitdiffstats
path: root/meta/classes/multilib_global.bbclass
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-09-13 19:52:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-13 17:08:13 +0100
commit50e184e0d9d7b38a08f979286eb65cd73d295f13 (patch)
tree688b54cfb48619456608294ba936f92a124a880a /meta/classes/multilib_global.bbclass
parent3117530f4463ae056a5772eaf7b3f1a7fbb31011 (diff)
downloadpoky-50e184e0d9d7b38a08f979286eb65cd73d295f13.tar.gz
multilib: Remove recipe from multilib.conf that inherits allarch
Recipes like update-rc.d and qemu-config inherit "allarch", thus we shouldn't add multilib BBCLASSEXTEND for them in multilib.conf. Besides, we need to add multilib packages as the RPROVIDER contents for those recipes, in order to avoid the NoProvider error when parsing. [YOCTO #1471] (From OE-Core rev: 329d864f9bbf94ad3aae8df43d63fe10e4237e4f) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/multilib_global.bbclass')
-rw-r--r--meta/classes/multilib_global.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/multilib_global.bbclass b/meta/classes/multilib_global.bbclass
index 1263e4ea82..ed14565a64 100644
--- a/meta/classes/multilib_global.bbclass
+++ b/meta/classes/multilib_global.bbclass
@@ -7,11 +7,15 @@ python multilib_virtclass_handler_global () {
7 if isinstance(e, bb.event.RecipeParsed) and not variant: 7 if isinstance(e, bb.event.RecipeParsed) and not variant:
8 if bb.data.inherits_class('kernel', e.data) or bb.data.inherits_class('module-base', e.data) or bb.data.inherits_class('allarch', e.data): 8 if bb.data.inherits_class('kernel', e.data) or bb.data.inherits_class('module-base', e.data) or bb.data.inherits_class('allarch', e.data):
9 origprovs = provs = e.data.getVar("PROVIDES", True) 9 origprovs = provs = e.data.getVar("PROVIDES", True)
10 rprovs = e.data.getVar("RPROVIDES", True)
10 variants = (e.data.getVar("MULTILIB_VARIANTS", True) or "").split() 11 variants = (e.data.getVar("MULTILIB_VARIANTS", True) or "").split()
11 for variant in variants: 12 for variant in variants:
12 provs = provs + " " + multilib_map_variable("PROVIDES", variant, e.data) 13 provs = provs + " " + multilib_map_variable("PROVIDES", variant, e.data)
14 for pkg in e.data.getVar("PACKAGES", True).split():
15 rprovs = rprovs + " " + variant + "-" + pkg
13 e.data.setVar("PROVIDES", origprovs) 16 e.data.setVar("PROVIDES", origprovs)
14 e.data.setVar("PROVIDES", provs) 17 e.data.setVar("PROVIDES", provs)
18 e.data.setVar("RPROVIDES", rprovs)
15} 19}
16 20
17addhandler multilib_virtclass_handler_global 21addhandler multilib_virtclass_handler_global