diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2011-09-13 19:52:44 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-13 17:08:12 +0100 |
commit | 3117530f4463ae056a5772eaf7b3f1a7fbb31011 (patch) | |
tree | 96a63717e07f156293623bf000b8d67d6aa81dd9 /meta/classes/base.bbclass | |
parent | aa203e460583388006f8ed12cbe0442e86c598eb (diff) | |
download | poky-3117530f4463ae056a5772eaf7b3f1a7fbb31011.tar.gz |
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]
(From OE-Core rev: 90ad70fe13a9f8409387ca70289998bdca649aeb)
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.bbclass | 4 |
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): | |||
181 | virt = "virtual/" | 181 | virt = "virtual/" |
182 | for p in prefixes: | 182 | for p in prefixes: |
183 | newname = "PREFERRED_PROVIDER_" + virt + p + "-" + pkg | 183 | newname = "PREFERRED_PROVIDER_" + virt + p + "-" + pkg |
184 | if pkg != "kernel": | ||
185 | val = p + "-" + val | ||
184 | if not d.getVar(newname, False): | 186 | if not d.getVar(newname, False): |
185 | d.setVar(newname, p + "-" + val) | 187 | d.setVar(newname, val) |
186 | 188 | ||
187 | 189 | ||
188 | mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() | 190 | mp = (d.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() |