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 15:22:53 +0000 (15:22 +0000)
commit4d54e9a5ed50dea070242c00538dbf39371e6221
treef56d4428f1e305aa1b9833a84031c76bda7ab7d7
parent6141576c7305fe25e5842a227a5e41edd98c8246
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.

(From OE-Core rev: f937977f241e786c5a7438449ed4c9da4c55829b)

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