]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto: skip kernel meta data branches when finding machine branch
authorBruce Ashfield <bruce.ashfield@windriver.com>
Fri, 23 Oct 2015 20:18:32 +0000 (16:18 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:07:32 +0000 (12:07 +0100)
commit87363ec019e04b486dee5f07b7226465be7acd6c
tree0f0d836581bbd688498a6e8fd851a563a8488d76
parented2da98bf3ac798009f58a53b91285b4dac69d5a
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'.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass