summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-05-06 23:28:39 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-07 13:40:36 +0100
commit02d0a003d603266114512160b209876199241e98 (patch)
tree99c516afcd275891ebadb91590383c118d025f8e
parente01db42f69183fe277395955983f6835202f1377 (diff)
downloadpoky-02d0a003d603266114512160b209876199241e98.tar.gz
kernel.bbclass: Fix race condition
Race condition between do_compile_kernelmodules and do_shared_workdir tasks occurs when do_compile_kernelmodules changes files in include/generated/* while do_shared_workdir tries to copy them to shared working directory. Fixed race by moving do_shared_workdir after do_compile but before do_compile_kernelmodules. [YOCTO #7321] (From OE-Core rev: b4ec689f71fe9504559c1921c893f5e096d6b744) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 125ed88406..74092e96aa 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -234,7 +234,7 @@ kernel_do_install() {
234} 234}
235do_install[prefuncs] += "package_get_auto_pr" 235do_install[prefuncs] += "package_get_auto_pr"
236 236
237addtask shared_workdir after do_compile before do_install 237addtask shared_workdir after do_compile before do_compile_kernelmodules
238 238
239emit_depmod_pkgdata() { 239emit_depmod_pkgdata() {
240 # Stash data for depmod 240 # Stash data for depmod