]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: do not expand PREFERRED_PROVIDER for kernel recipe
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 13 Sep 2011 11:52:44 +0000 (19:52 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 13 Sep 2011 16:07:48 +0000 (17:07 +0100)
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>
meta/classes/base.bbclass

index 104bec8628228eba196851bcc73bc8c2b1efae17..4ca04e235f304468de1dbe603b677aee0b41a01f 100644 (file)
@@ -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()