summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/kernel-yocto.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index 50ff555efe..5f3cb63fb4 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -165,7 +165,7 @@ do_kernel_checkout() {
165 echo "kernel repository" 165 echo "kernel repository"
166 exit 1 166 exit 1
167 fi 167 fi
168 if [ -z "${YOCTO_KERNEL_EXTERNAL_BRANCH}" ]; then 168 if [ -z "${YOCTO_KERNEL_EXTERNAL_BRANCH}" ] && [ -n "${KBRANCH}" ] ; then
169 git branch -a | grep -q ${KBRANCH} 169 git branch -a | grep -q ${KBRANCH}
170 if [ $? -ne 0 ]; then 170 if [ $? -ne 0 ]; then
171 echo "ERROR. The branch '${KBRANCH}' is required and was not" 171 echo "ERROR. The branch '${KBRANCH}' is required and was not"