]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: use KBRANCH as default build branch
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 1 Apr 2013 17:09:34 +0000 (10:09 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Apr 2013 17:04:08 +0000 (18:04 +0100)
commit0c389f41d7ea0697a5468c73cce295a2fa64e9e0
tree040b0e650419b5ee8be21921022d69b5c72de695
parent1d7a5ac1cea1a5bdb6a9d3dd822439c070066272
kernel-yocto: use KBRANCH as default build branch

commit 61001aa [kernel-yocto: respect SRC_URI modified branch selection]
changed branch processing such that a branch specified in the SRC_URI
would set the branch forced as the build branch.

This change broke compatibility with the yocto-bsp, linux-yocto-custom
based recipes. These recipes specify the branch to be built via KBRANCH,
but allow the fetcher to use master for keeping the repository up to
date. This means that no explicit branch is set in the SRC_URI and the
routines return the default branch of 'master', which is not what is
set in KBRANCH.

To support this case, we simply pass a default branch into the routine
returning the branch to build, and ensure that the default is KBRANCH
so if no branch is passed in the SRC_URI, KBRANCH is always built.

[YOCTO #4145]

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