summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-09-13 19:52:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-13 17:07:48 +0100
commit90ad70fe13a9f8409387ca70289998bdca649aeb (patch)
treef95cf54300d6971eb1f06f0bc9d969d05d827ebb /meta/classes/base.bbclass
parent9f439bced3c1d2503a14942da1a3c729c0226f6c (diff)
downloadopenembedded-core-90ad70fe13a9f8409387ca70289998bdca649aeb.tar.gz
openembedded-core-90ad70fe13a9f8409387ca70289998bdca649aeb.tar.bz2
openembedded-core-90ad70fe13a9f8409387ca70289998bdca649aeb.zip
base.bbclass: do not expand PREFERRED_PROVIDER for kernel recipe
With Richard's commit f9c36392, we only build one kernel for a system, thus we shouldn't extend PREFERRED_PROVIDER for virtual/kernel. [YOCTO #1471] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 104bec8628..4ca04e235f 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -181,8 +181,10 @@ def preferred_ml_updates(d):
virt = "virtual/"
for p in prefixes:
newname = "PREFERRED_PROVIDER_" + virt + p + "-" + pkg
+ if pkg != "kernel":
+ val = p + "-" + val
if not d.getVar(newname, False):
- d.setVar(newname, p + "-" + val)
+ d.setVar(newname, val)
mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split()