Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] [RFC]kernel-yocto.bbclass: ensure repatching when HEAD is checked out
@ 2017-02-03 10:49 Awais Belal
  2017-02-03 14:16 ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Awais Belal @ 2017-02-03 10:49 UTC (permalink / raw)
  To: openembedded-core

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 creates and
checks for the kgit-s2q.last 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.

Signed-off-by: Awais Belal <awais_belal@mentor.com>
---
 meta/classes/kernel-yocto.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 5cfd8af..131c48a 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -350,6 +350,10 @@ do_validate_branches() {
 			current_branch=`git rev-parse --abbrev-ref HEAD`
 			git branch "$current_branch-orig"
 			git reset --hard ${force_srcrev}
+			# We've checked out HEAD, make sure we cleanup kgit-s2q fence post check
+			# so the patches are applied as expected otherwise no patching
+			# would be done in some corner cases.
+			rm -rf ${S}/.git/kgit-s2q.last
 		fi
 	fi
 }
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-07  8:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-03 10:49 [PATCH] [RFC]kernel-yocto.bbclass: ensure repatching when HEAD is checked out Awais Belal
2017-02-03 14:16 ` Bruce Ashfield
2017-02-03 18:20   ` Bruce Ashfield
2017-02-07  8:10     ` Belal, Awais

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox