summaryrefslogtreecommitdiff
path: root/meta/classes
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:14:39 +0100
commitb4ec689f71fe9504559c1921c893f5e096d6b744 (patch)
treef19171c7fea3eb2deaeb3ea1e0f2fd78ab3e1312 /meta/classes
parent2392c9bae9fc7732ebafb8c2cd42e49ab281afc9 (diff)
downloadopenembedded-core-b4ec689f71fe9504559c1921c893f5e096d6b744.tar.gz
openembedded-core-b4ec689f71fe9504559c1921c893f5e096d6b744.tar.bz2
openembedded-core-b4ec689f71fe9504559c1921c893f5e096d6b744.zip
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] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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() {
}
do_install[prefuncs] += "package_get_auto_pr"
-addtask shared_workdir after do_compile before do_install
+addtask shared_workdir after do_compile before do_compile_kernelmodules
emit_depmod_pkgdata() {
# Stash data for depmod