]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: fix checkout bare-cloned kernel repositories
authorJianxun Zhang <jianxun.zhang@linux.intel.com>
Tue, 8 Dec 2015 18:58:43 +0000 (10:58 -0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 1 Feb 2016 16:23:27 +0000 (08:23 -0800)
commitf3d0ae7b174f47170fef14a699aec22d02ea1745
tree2b0350dc625b22dbf6022de6b427c4611e622e1a
parent3e403cc1bdeefd4f39e54bae2269ca56307e8468
kernel-yocto: fix checkout bare-cloned kernel repositories

The existing code doesn't tell regular (with .git) and bare cases and
just move the unpacked repo to the place of kernel source. But later
steps will fail on a bare-cloned repo because we can not checkout
directly in a bare cloned repo.

This change performs another clone to fix the issue.

Note: This change doesn't cover the case that S and WORKDIR are same
and the repo is bare cloned.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit ccfa2ee5c4f509de4c18a7054b2a66fc874d5d69)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel-yocto.bbclass