[oe-commits] Dongxiao Xu : base.bbclass: do not expand PREFERRED_PROVIDER for kernel recipe
git version control
git at git.openembedded.org
Tue Sep 13 16:08:17 UTC 2011
Module: openembedded-core.git
Branch: master
Commit: 90ad70fe13a9f8409387ca70289998bdca649aeb
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=90ad70fe13a9f8409387ca70289998bdca649aeb
Author: Dongxiao Xu <dongxiao.xu at intel.com>
Date: Tue Sep 13 19:52:44 2011 +0800
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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 104bec8..4ca04e2 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()
More information about the Openembedded-commits
mailing list