summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/libtraceevent
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/libtraceevent')
-rw-r--r--meta/recipes-kernel/libtraceevent/libtraceevent/meson.patch45
-rw-r--r--meta/recipes-kernel/libtraceevent/libtraceevent_1.8.2.bb23
2 files changed, 68 insertions, 0 deletions
diff --git a/meta/recipes-kernel/libtraceevent/libtraceevent/meson.patch b/meta/recipes-kernel/libtraceevent/libtraceevent/meson.patch
new file mode 100644
index 0000000000..c723c236c0
--- /dev/null
+++ b/meta/recipes-kernel/libtraceevent/libtraceevent/meson.patch
@@ -0,0 +1,45 @@
1From 7f88c9ba5f27276e844252500a9f0ba2b350b919 Mon Sep 17 00:00:00 2001
2From: Ross Burton <ross.burton@arm.com>
3Date: Sun, 27 Aug 2023 20:57:44 +0100
4Subject: [PATCH] Fixes for the Meson build of libtraceevent:
5
6- Make the plugin directory the same as the Makefiles
7- Install the plugins as modules not static and versioned shared libraries
8
9Upstream-Status: Submitted [https://lore.kernel.org/linux-trace-devel/20240311111140.1789879-1-alex@linutronix.de/T/#u]
10Signed-off-by: Ross Burton <ross.burton@arm.com>
11---
12 meson.build | 2 +-
13 plugins/meson.build | 3 +--
14 2 files changed, 2 insertions(+), 3 deletions(-)
15
16diff --git a/meson.build b/meson.build
17index 40ce38c..1eb7912 100644
18--- a/meson.build
19+++ b/meson.build
20@@ -25,7 +25,7 @@ htmldir = join_paths(prefixdir, get_option('htmldir'))
21 libdir = join_paths(prefixdir, get_option('libdir'))
22 plugindir = get_option('plugindir')
23 if plugindir == ''
24- plugindir = join_paths(libdir, 'libtraceevent/plugins')
25+ plugindir = join_paths(libdir, 'traceevent/plugins')
26 endif
27
28 add_project_arguments(
29diff --git a/plugins/meson.build b/plugins/meson.build
30index 74ad664..4919be4 100644
31--- a/plugins/meson.build
32+++ b/plugins/meson.build
33@@ -19,11 +19,10 @@ plugins = [
34
35 pdeps = []
36 foreach plugin : plugins
37- pdeps += library(
38+ pdeps += shared_module(
39 plugin.replace('.c', ''),
40 plugin,
41 name_prefix: '',
42- version: library_version,
43 dependencies: [libtraceevent_dep],
44 include_directories: [incdir],
45 install: true,
diff --git a/meta/recipes-kernel/libtraceevent/libtraceevent_1.8.2.bb b/meta/recipes-kernel/libtraceevent/libtraceevent_1.8.2.bb
new file mode 100644
index 0000000000..d4ace54884
--- /dev/null
+++ b/meta/recipes-kernel/libtraceevent/libtraceevent_1.8.2.bb
@@ -0,0 +1,23 @@
1# Copyright (C) 2022 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "API to access the kernel tracefs directory"
5HOMEPAGE = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/"
6LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
7LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \
8 file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
9SECTION = "libs"
10
11SRCREV = "6f6d5802f31992e7527a4c32b43a32fda6bf6bdf"
12SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git;branch=${BPN};protocol=https \
13 file://meson.patch"
14
15S = "${WORKDIR}/git"
16
17inherit meson pkgconfig
18
19EXTRA_OEMESON = "-Ddoc=false"
20
21PACKAGES += "${PN}-plugins"
22
23FILES:${PN}-plugins += "${libdir}/traceevent/plugins"