summaryrefslogtreecommitdiffstats
path: root/meta/classes/module.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-14 10:31:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-14 11:43:56 +0100
commitb12d79ef5e601f3399f1a8f51c97b3795f54dc2a (patch)
tree922f8a802bc4ea55088a0c238b96af4f0b91d380 /meta/classes/module.bbclass
parent57aeb9e45f75ebf449f07d909cbeae598284fe32 (diff)
downloadpoky-b12d79ef5e601f3399f1a8f51c97b3795f54dc2a.tar.gz
module/module-base/lttng-modules: Improve kernel module dependencies
If we have DEPENDS = "virtual/kernel" is means that the kernel module depends on the kernel's do_populate_sysroot task. This is not entirely desireable since that depends on do_install which depends on do_compile_kernelmodules and so on. In a situation where rm_work in involved this can cause some pretty length build cycles after the kernel workdir has been cleaned up by rm_work. As well as removing this, take the opportunity to clean up duplicated dependency lines, tweak the dependency of make_scripts for the same reason and generally try and make things more readable. (From OE-Core rev: a641247d262971db2d44815c5a668e7e50bdaf4f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/module.bbclass')
-rw-r--r--meta/classes/module.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/module.bbclass b/meta/classes/module.bbclass
index a03cc74de4..0952c0cca7 100644
--- a/meta/classes/module.bbclass
+++ b/meta/classes/module.bbclass
@@ -1,10 +1,8 @@
1DEPENDS += "virtual/kernel"
2
3inherit module-base kernel-module-split 1inherit module-base kernel-module-split
4 2
5addtask make_scripts after do_patch before do_compile 3addtask make_scripts after do_patch before do_compile
6do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" 4do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
7do_make_scripts[deptask] = "do_populate_sysroot" 5do_make_scripts[depends] += "virtual/kernel:do_shared_workdir"
8 6
9EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}" 7EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}"
10 8