diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-12-30 14:25:49 -0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-31 08:21:05 +0000 |
commit | e575ab81f0cf145503c4afd9ce62040721a526b2 (patch) | |
tree | 591a9a36c9be80bc4b8f8d6b52f4cf7cd3f6bca2 /meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb | |
parent | f25e913dbc400a8c72fbd93b2754501d5b61e3df (diff) | |
download | openembedded-core-contrib-e575ab81f0cf145503c4afd9ce62040721a526b2.tar.gz |
lttng-modules: Update to revision to 16d7431c3
This update the source code to the 2.5.2 version and also brings two
fixes from stable-2.5 branch. The update also allowed the removal of
some already applied patches from the metadata.
Doing this update, it fixes following build error:
,----
| make[1]: Entering directory `.../build-framebuffer/tmp/sysroots/imx23evk/usr/src/kernel'
|
| ERROR: Kernel configuration is invalid.
| include/generated/autoconf.h or include/config/auto.conf are missing.
| Run 'make oldconfig && make prepare' on kernel src to fix it.
|
| Building modules, stage 2.
| ./scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
| make[2]: *** No rule to make target `include/config/auto.conf'. Stop.
| make[1]: *** [modules] Error 2
| make[1]: Leaving directory `.../build-framebuffer/tmp/sysroots/imx23evk/usr/src/kernel'
| make: *** [default] Error 2
`----
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb b/meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb new file mode 100644 index 0000000000..55df07f632 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-modules_2.5.2.bb @@ -0,0 +1,39 @@ +SECTION = "devel" +SUMMARY = "Linux Trace Toolkit KERNEL MODULE" +DESCRIPTION = "The lttng-modules 2.0 package contains the kernel tracer modules" +LICENSE = "LGPLv2.1 & GPLv2 & MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=1412caf5a1aa90d6a48588a4794c0eac \ + file://gpl-2.0.txt;md5=751419260aa954499f7abaabaa882bbe \ + file://lgpl-2.1.txt;md5=243b725d71bb5df4a1e5920b344b86ad" + +DEPENDS = "virtual/kernel" +do_configure[depends] += "virtual/kernel:do_install" + +inherit module + +SRCREV = "16d7431c3a78605ea598dbd3f081a2b1a8463f23" + +COMPATIBLE_HOST = '(x86_64|i.86|powerpc|aarch64|mips|arm).*-linux' + +SRC_URI = "git://git.lttng.org/lttng-modules.git;branch=stable-2.5 \ + file://lttng-modules-replace-KERNELDIR-with-KERNEL_SRC.patch \ + file://Fix-noargs-probes-should-calculate-alignment-and-eve.patch \ + file://Update-kvm-instrumentation-compile-on-3.17-rc1.patch \ + " + +export INSTALL_MOD_DIR="kernel/lttng-modules" +export KERNEL_SRC="${STAGING_KERNEL_DIR}" + + +S = "${WORKDIR}/git" + +do_install_append() { + # Delete empty directories to avoid QA failures if no modules were built + find ${D}/lib -depth -type d -empty -exec rmdir {} \; +} + +python do_package_prepend() { + if not os.path.exists(os.path.join(d.getVar('D', True), 'lib/modules')): + bb.warn("%s: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel." % d.getVar('PN', True)) +} + |