summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel-yocto.bbclass
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2015-10-23 16:18:32 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:24 +0000
commit3bab714a396f0389853fa5fb8038db0273e10267 (patch)
tree2126b64f6207114b16b3cb34fe6639387f81c736 /meta/classes/kernel-yocto.bbclass
parent1561d0d4cf609bce555c279f4bd322016524c43a (diff)
downloadpoky-3bab714a396f0389853fa5fb8038db0273e10267.tar.gz
linux-yocto: skip kernel meta data branches when finding machine branch
Before the fetcher validated the specified SRCREV was reachable on a specified branch, linux-yocto style kernel's were comparing the value of KBRANCH and branch on the SRC_URI and then allowing a SRC_URI specified branch to override KBRANCH. With the introduction of kernel meta data on the SRC_URI, this routine is incorrectly picking up a kernel-cache repository and then attempting to apply that branch information to the kernel repository. The rationalization of the branch specification is largely no longer required, and will may be removed in the future. But for now, to keep changes minimal, we can simply not return branch information that comes from kernel meta data by checking the 'type' parameter and skipping if it is of type 'kmeta'. (From OE-Core rev: 87363ec019e04b486dee5f07b7226465be7acd6c) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
-rw-r--r--meta/classes/kernel-yocto.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 325f94c735..00d9667fe0 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -52,7 +52,9 @@ def get_machine_branch(d, default):
52 parm = urldata.parm 52 parm = urldata.parm
53 if "branch" in parm: 53 if "branch" in parm:
54 branches = urldata.parm.get("branch").split(',') 54 branches = urldata.parm.get("branch").split(',')
55 return branches[0] 55 btype = urldata.parm.get("type")
56 if btype != "kmeta":
57 return branches[0]
56 58
57 return default 59 return default
58 60