diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-14 10:31:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-14 11:43:56 +0100 |
commit | b12d79ef5e601f3399f1a8f51c97b3795f54dc2a (patch) | |
tree | 922f8a802bc4ea55088a0c238b96af4f0b91d380 /meta/classes | |
parent | 57aeb9e45f75ebf449f07d909cbeae598284fe32 (diff) | |
download | poky-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')
-rw-r--r-- | meta/classes/module-base.bbclass | 5 | ||||
-rw-r--r-- | meta/classes/module.bbclass | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes/module-base.bbclass b/meta/classes/module-base.bbclass index 3eb2e9226e..8be26c4f5e 100644 --- a/meta/classes/module-base.bbclass +++ b/meta/classes/module-base.bbclass | |||
@@ -1,5 +1,8 @@ | |||
1 | inherit kernel-arch | 1 | inherit kernel-arch |
2 | 2 | ||
3 | # This is instead of DEPENDS = "virtual/kernel" | ||
4 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | ||
5 | |||
3 | export OS = "${TARGET_OS}" | 6 | export OS = "${TARGET_OS}" |
4 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 7 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
5 | 8 | ||
@@ -15,8 +18,6 @@ KERNEL_OBJECT_SUFFIX = ".ko" | |||
15 | # kernel modules are generally machine specific | 18 | # kernel modules are generally machine specific |
16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 19 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
17 | 20 | ||
18 | do_configure[depends] += "virtual/kernel:do_shared_workdir" | ||
19 | |||
20 | # Function to ensure the kernel scripts are created. Expected to | 21 | # Function to ensure the kernel scripts are created. Expected to |
21 | # be called before do_compile. See module.bbclass for an exmaple. | 22 | # be called before do_compile. See module.bbclass for an exmaple. |
22 | do_make_scripts() { | 23 | do_make_scripts() { |
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 @@ | |||
1 | DEPENDS += "virtual/kernel" | ||
2 | |||
3 | inherit module-base kernel-module-split | 1 | inherit module-base kernel-module-split |
4 | 2 | ||
5 | addtask make_scripts after do_patch before do_compile | 3 | addtask make_scripts after do_patch before do_compile |
6 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" | 4 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" |
7 | do_make_scripts[deptask] = "do_populate_sysroot" | 5 | do_make_scripts[depends] += "virtual/kernel:do_shared_workdir" |
8 | 6 | ||
9 | EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}" | 7 | EXTRA_OEMAKE += "KERNEL_SRC=${STAGING_KERNEL_DIR}" |
10 | 8 | ||