diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2013-07-01 15:21:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-07-02 22:23:50 +0100 |
commit | fba5c25ba82649b106560183291f3ed60a4bffa7 (patch) | |
tree | b53c1f6b8c659b54fb2110ad5e1b45d8e3c79c2f /meta/recipes-kernel | |
parent | 891ee9d5852f9dc9b792e6684d0f04f7e6b83324 (diff) | |
download | poky-fba5c25ba82649b106560183291f3ed60a4bffa7.tar.gz |
lttng-modules: allow building without tracepoints enabled in kernel
Avoid a QA failure and instead produce a sensible warning message if no
modules were built.
Fixes [YOCTO #4791].
(From OE-Core rev: 3ef5b19cbd7a90e11fc61223737b0b8e0e60b1a3)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules_2.1.1.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.1.1.bb b/meta/recipes-kernel/lttng/lttng-modules_2.1.1.bb index 700c4c5760..0bbaa817ca 100644 --- a/meta/recipes-kernel/lttng/lttng-modules_2.1.1.bb +++ b/meta/recipes-kernel/lttng/lttng-modules_2.1.1.bb | |||
@@ -22,3 +22,14 @@ export KERNEL_SRC="${STAGING_KERNEL_DIR}" | |||
22 | 22 | ||
23 | 23 | ||
24 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |
25 | |||
26 | do_install_append() { | ||
27 | # Delete empty directories to avoid QA failures if no modules were built | ||
28 | find ${D}/lib -depth -type d -empty -exec rmdir {} \; | ||
29 | } | ||
30 | |||
31 | python do_package_prepend() { | ||
32 | if not os.path.exists(os.path.join(d.getVar('D', True), 'lib/modules')): | ||
33 | bb.warn("%s: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel." % d.getVar('PN', True)) | ||
34 | } | ||
35 | |||