]> code.ossystems Code Review - openembedded-core.git/commit
kern-tools: fix do_patch errors
authorBruce Ashfield <bruce.ashfield@windriver.com>
Wed, 9 May 2012 03:42:24 +0000 (23:42 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 May 2012 19:40:51 +0000 (20:40 +0100)
commitbd794b92d12ceda2728520701e980b7a3cabd23d
tree962167b153ebde256d1e7b1a0cbe774f263cad93
parent87249372b4a9951f9e4dc6acece950718382a164
kern-tools: fix do_patch errors

The linux-yocto repository and scripts can support a mode of
meta data management that merges a base meta branch to every
BSP branch. In this case, the scripts don't have to restore
a checkpoint for the meta data to be globally accessible.

The decision to restore or not is made based on whether or
not the meta branch is part of all branches or not.

The linux-yocto recipes have a sanity check to determine if
the requested SRCREV for meta data matches the head of the
meta branch (via do_validate_branches). If the wrong commit
is at the head, the meta branch is moved aside and the branch
reset to the right commit. This creates two meta branches that
contain the base meta data.

The test for integrated meta data mistakes this for a globally
merged set of meta data and doesn't restore the checkpoint, which
leads to build failures.

The immediate fix is to allow two branches to have the meta
data. The long term fix is to make the detection only consider
if the build branch contains the meta data.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/recipes-kernel/kern-tools/kern-tools-native_git.bb