diff options
| author | Kai Kang <kai.kang@windriver.com> | 2021-04-23 11:29:04 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-24 17:53:05 +0100 |
| commit | e7746189de9092c137aa241f6b896a1eee20075b (patch) | |
| tree | b94b4a1bc6912caf4d446cc8bcfcda725a36393d /meta/classes/kernel-yocto.bbclass | |
| parent | 9bbd9cab86762e78afca0af0042720e0ea020279 (diff) | |
| download | poky-e7746189de9092c137aa241f6b896a1eee20075b.tar.gz | |
kernel-yocto.bbclass: chdir to ${WORKDIR} for do_kernel_checkout
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.
(From OE-Core rev: cf0e3397d3f86c7ea1f3c66c50a44d6205f5921b)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-yocto.bbclass')
| -rw-r--r-- | meta/classes/kernel-yocto.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index 15c8dbb81f..30f07de4ca 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
| @@ -378,7 +378,7 @@ do_kernel_checkout() { | |||
| 378 | # checkout and clobber any unimportant files | 378 | # checkout and clobber any unimportant files |
| 379 | git checkout -f ${machine_branch} | 379 | git checkout -f ${machine_branch} |
| 380 | } | 380 | } |
| 381 | do_kernel_checkout[dirs] = "${S}" | 381 | do_kernel_checkout[dirs] = "${S} ${WORKDIR}" |
| 382 | 382 | ||
| 383 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc | 383 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc |
| 384 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch | 384 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch |
