summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/kernel-yocto.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/kernel-yocto.bbclass')
-rw-r--r--meta/classes-recipe/kernel-yocto.bbclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass
index ba93145fd3..e53bf15194 100644
--- a/meta/classes-recipe/kernel-yocto.bbclass
+++ b/meta/classes-recipe/kernel-yocto.bbclass
@@ -388,19 +388,19 @@ do_kernel_checkout() {
388 set +e 388 set +e
389 389
390 source_dir=`echo ${S} | sed 's%/$%%'` 390 source_dir=`echo ${S} | sed 's%/$%%'`
391 source_workdir="${UNPACKDIR}/git" 391 source_unpackdir="${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}"
392 if [ -d "${UNPACKDIR}/git/" ]; then 392 if [ -d "${source_unpackdir}" ]; then
393 # case: git repository 393 # case: git repository
394 # if S is WORKDIR/git, then we shouldn't be moving or deleting the tree. 394 # if S is UNPACKDIR/BB_GIT_DEFAULT_DESTSUFFIX, then we shouldn't be moving or deleting the tree.
395 if [ "${source_dir}" != "${source_workdir}" ]; then 395 if [ "${source_dir}" != "${source_unpackdir}" ]; then
396 if [ -d "${source_workdir}/.git" ]; then 396 if [ -d "${source_unpackdir}/.git" ]; then
397 # regular git repository with .git 397 # regular git repository with .git
398 rm -rf ${S} 398 rm -rf ${S}
399 mv ${UNPACKDIR}/git ${S} 399 mv ${source_unpackdir} ${S}
400 else 400 else
401 # create source for bare cloned git repository 401 # create source for bare cloned git repository
402 git clone ${WORKDIR}/git ${S} 402 git clone ${source_unpackdir} ${S}
403 rm -rf ${UNPACKDIR}/git 403 rm -rf ${source_unpackdir}
404 fi 404 fi
405 fi 405 fi
406 cd ${S} 406 cd ${S}