mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
linux-yocto: allow non-branched repositories to check out
Not all users of the checkout phase of linux-yocto have all branches present. This is normal, and should be supported. By checking for an empty KBRANCH we can avoid validating a branch that isn't supposed to exist. [YOCTO #2032] (From OE-Core rev: fb2b3c7c10df1b44679a20e7dffd37f07fd01aba) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
84ad6671d5
commit
6beb61f3ca
@@ -165,7 +165,7 @@ do_kernel_checkout() {
|
||||
echo "kernel repository"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "${YOCTO_KERNEL_EXTERNAL_BRANCH}" ]; then
|
||||
if [ -z "${YOCTO_KERNEL_EXTERNAL_BRANCH}" ] && [ -n "${KBRANCH}" ] ; then
|
||||
git branch -a | grep -q ${KBRANCH}
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR. The branch '${KBRANCH}' is required and was not"
|
||||
|
||||
Reference in New Issue
Block a user