]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: improve error checking on non-git repos
authorBruce Ashfield <bruce.ashfield@windriver.com>
Fri, 6 Sep 2013 19:47:28 +0000 (15:47 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Sep 2013 22:01:52 +0000 (23:01 +0100)
commit0ebf67e8b4f7aaf259d7abac4af645070d846ec8
tree1c5219a214f3317ba8093afade12d4f52cbd4ff3
parent410a4db2faec084a0e918dfce9fcb6c54d2aeaaf
kernel-yocto: improve error checking on non-git repos

While non-git kernel repos are not the preferred format for a kernel upstream,
they are supported. Depending on the creator of the archive the expanded
source directory name varies. If the recipe for the kernel doesn't properly
set S to the right value, a cryptic git error message is produced. We can
detect the situation and offer some advice on how to fix the issue.

A second check is also added in this commit for archive based kernel repos
which won't have a SRCREV to validate. If we have no SRCREV or SRCREV is
INVALID, we can exit the branch validation step immediately. This saves yet
another cryptic git error message and simplifies a custom tgz based recipe.

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