diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-05-07 23:36:14 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-28 09:44:06 +0100 |
| commit | 409bdca8e33931a6893409f08061641333a228c4 (patch) | |
| tree | d9b964e389caa815cd594720d0710b0dc87037c7 | |
| parent | dc70442747324183fcde614b358b131ae13d2cfb (diff) | |
| download | poky-409bdca8e33931a6893409f08061641333a228c4.tar.gz | |
linux-yocto: fix race between checkout and meta data generation
There are two tasks that must run before a linux-yocto kernel is built.
- Kernel checkout and relocation to work-shared (kernel_checkout)
- Meta data gathering and configuration prep (kernel_metadata)
The current task definitions for both are simply "before do_patch",
which is correct, but kernel_checkout must run before and not race with
kernel_metadata.
So we set the definition of kernel_checkout to be more specific and
enforce the proper ordering.
[YOCTO: #7731]
(From OE-Core rev: 9d806f3d05de918952f839f5e595cb71cd1261db)
(From OE-Core rev: 561b7776d93d40cac009360ec95b8de78888f1ca)
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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 650ae5a473..0dd5b48513 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
| @@ -259,7 +259,7 @@ do_kernel_checkout() { | |||
| 259 | } | 259 | } |
| 260 | do_kernel_checkout[dirs] = "${S}" | 260 | do_kernel_checkout[dirs] = "${S}" |
| 261 | 261 | ||
| 262 | addtask kernel_checkout before do_patch after do_unpack | 262 | addtask kernel_checkout before do_kernel_metadata after do_unpack |
| 263 | addtask kernel_metadata after do_validate_branches before do_patch | 263 | addtask kernel_metadata after do_validate_branches before do_patch |
| 264 | do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" | 264 | do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" |
| 265 | 265 | ||
