]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto: make kernel_checkout reentrant
authorBruce Ashfield <bruce.ashfield@windriver.com>
Tue, 28 Feb 2012 21:09:58 +0000 (16:09 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 2 Mar 2012 14:01:05 +0000 (14:01 +0000)
commitf937977f241e786c5a7438449ed4c9da4c55829b
tree9ec2981d562b9dfcb5eb5d19a5cb64d3a277ea51
parent7147a569758414467c9d022e4c11fbc303e050aa
linux-yocto: make kernel_checkout reentrant

The steps in do_kernel_checkout modify the source tree in WORKDIR.
If it is called multiple times, or interrupted, the tree is left
in an inconsistent state.

This change adds protections around branch names, and around the
manipulations of directories to ensure that it is safe to call
at any point.

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