]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-yocto.bbclass: chdir to ${WORKDIR} for do_kernel_checkout
authorKai Kang <kai.kang@windriver.com>
Fri, 23 Apr 2021 03:29:04 +0000 (11:29 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Apr 2021 16:53:01 +0000 (17:53 +0100)
It chdirs to ${S} at the beginning of task do_kernel_checkout. Then it
removes ${S} when it still resides in ${S}. It may fail to run the task
do_kernel_checkout when bitbake is called by third-part wrapper script.
So chdir to ${WORKDIR} by default for do_kernel_checkout. And it will
chdir to ${S} afterwards in task do_kernel_checkout.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass

index 15c8dbb81f7765e6c1541acf7c01a31aee13c337..30f07de4cacb0ffad56657f3c43163f472987efe 100644 (file)
@@ -378,7 +378,7 @@ do_kernel_checkout() {
        # checkout and clobber any unimportant files
        git checkout -f ${machine_branch}
 }
-do_kernel_checkout[dirs] = "${S}"
+do_kernel_checkout[dirs] = "${S} ${WORKDIR}"
 
 addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc
 addtask kernel_metadata after do_validate_branches do_unpack before do_patch