]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: fix branch validation for AUTOREV, non machine_meta kernels
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 13 Oct 2014 03:53:59 +0000 (23:53 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Oct 2014 16:31:59 +0000 (17:31 +0100)
commit212a4bd9b086365c022842a2ac6a2a25bd486002
tree07dc9d78e8465fd0a2b2469e0e0dd67801577d38
parent18de1328dc99b851742468a3f366e3acdcce48d4
kernel-yocto: fix branch validation for AUTOREV, non machine_meta kernels

The simplication of do_validate_branches missed a case where a custom
kernel can supply SRCREV="${AUTOREV}", and not use SRCREV_machine at all.

In this case, we will incorrectly try and test the tree for a non-existent
commit, and break the build.

By simplying the condition of the check to look for an empty SRCREV_machine,
we can skip manipulating the tree and testing for a SRCREV.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-yocto.bbclass