Patchwork [1/2] base.bbclass: do not expand PREFERRED_PROVIDER for kernel recipe

login
register
mail settings
Submitter Dongxiao Xu
Date Sept. 13, 2011, 11:52 a.m.
Message ID <2346bd3780c5f864d5682dd86a223ddc16254468.1315914682.git.dongxiao.xu@intel.com>
Download mbox | patch
Permalink /patch/11315/
State New, archived
Headers show

Comments

Dongxiao Xu - Sept. 13, 2011, 11:52 a.m.
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>
---
 meta/classes/base.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

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()