diff mbox series

[meta-oe,1/3] libtraceevent: Add recipe

Message ID 20221222090825.176892-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/3] libtraceevent: Add recipe | expand

Commit Message

Khem Raj Dec. 22, 2022, 9:08 a.m. UTC
Its needed by trace-cmd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../libtraceevent/libtraceevent_1.7.0.bb      | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/libtraceevent/libtraceevent_1.7.0.bb

Comments

robert.berger.oe.devel Jan. 2, 2023, 12:19 a.m. UTC | #1
Hi Khem,

I saw issues with libtraceevent and trace-cmd when building an sdk or an 
-sdk image, since they seem to install the same header files on the same 
place.

I think I tried core-image-sato-sdk and also to build an SDK with it.

Regards,

Robert
diff mbox series

Patch

diff --git a/meta-oe/recipes-kernel/libtraceevent/libtraceevent_1.7.0.bb b/meta-oe/recipes-kernel/libtraceevent/libtraceevent_1.7.0.bb
new file mode 100644
index 0000000000..cbd107a4b4
--- /dev/null
+++ b/meta-oe/recipes-kernel/libtraceevent/libtraceevent_1.7.0.bb
@@ -0,0 +1,22 @@ 
+# Copyright (C) 2022 Khem Raj <raj.khem@gmail.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "API to access the kernel tracefs directory"
+HOMEPAGE = "https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/"
+LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
+LIC_FILES_CHKSUM = "file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \
+                    file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd"
+SECTION = "libs"
+
+SRCREV = "826b06bb2484a53fdae196e12ec507a67ec87055"
+SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git;branch=${BPN};protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig
+
+do_install() {
+    oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig
+}
+
+FILES:${PN} += "${libdir}/traceevent"