]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto.bbclass: ensure repatching when HEAD is checked out
authorAwais Belal <awais_belal@mentor.com>
Tue, 14 Feb 2017 21:14:15 +0000 (16:14 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Feb 2017 14:16:50 +0000 (06:16 -0800)
commitd57aeafdd2b49010a9fa6d1cd9d10f3cfd5754a5
tree5bf394e05d899987142ad63b8eebb420faee8c17
parent9f225ef5620f2e47e762b2fd16fa5f8d6f1f60fd
kernel-yocto.bbclass: ensure repatching when HEAD is checked out

In some cases it is seen that kernel_checkout and validate_branches are
run again in simultaneous builds. During do_patch the kgit-s2q mechanism
looks for a sentinel file inside the .git directory, finds a fence post
and starts picking up patches after that.

This can create trouble as validate_branches checks out the HEAD of the
branch and so the patches should be reapplied rather than skipped due to
finding of the fence post.

We can call kgit-s2q --clean to remove the sentinel file when the
branches are checked out.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass
meta/recipes-kernel/kern-tools/kern-tools-native_git.bb