From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 14 May 2024 18:45:41 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s6vHZ-00EVYz-1q for lore@lore.pengutronix.de; Tue, 14 May 2024 18:45:41 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1s6vHZ-0000bw-4V; Tue, 14 May 2024 18:45:41 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s6vHH-0000Qn-Bv; Tue, 14 May 2024 18:45:23 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6vHG-001O6H-VO; Tue, 14 May 2024 18:45:22 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1s6vHG-004ioW-2s; Tue, 14 May 2024 18:45:22 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: ptxdist@pengutronix.de Date: Tue, 14 May 2024 18:45:15 +0200 Message-ID: <20240514164513.2430066-5-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240514164513.2430066-4-u.kleine-koenig@pengutronix.de> References: <20240514164513.2430066-4-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=3386; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=tGmCrqlsyDiMBrdM82yBk+6La+a5XnVMkLUp6su3jvE=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBmQ5UadxV3QK5VeP+mnWRXfWQUui4dEZ9dCAzt4 zfG6sqtMfKJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZkOVGgAKCRCPgPtYfRL+ Tj5oB/4lHOZTMbD0/+XSatJ0+imZmDjLxTjLEMi+NgQafp7S3B/PMVqCY9NtKHNaDP5vf9TUS76 AkwjaDGaUvOh6y7PeT/5hyLI90Qfd41a0sokWOI7UsITxVv0xdmJqKH0K7qLaMAXDd8THrD7AtY eTjAQSXk8L8UTioWN0Zrrg1EzkgbUGelR/VWhNd+5DCJoOdnx8KKHL6BojfV4SlfCdowPP3pVt3 NV67ApZ0WvGEBTlDu2J0GMaZ7zIxSqYz46d5oT8/82gO1ww9CycMKNdxNX1ypBGKnuwGC2ENQBZ W0NIZ0BJEvw+a/U4cOsYNtgLqNt3QaVd+5ymKhCZ8+jP/GNw X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH v2 1/2] libtraceevent: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Michael Tretter Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false This is required for perf (PTXCONF_KERNEL_TOOL_PERF) to work with tracepoints and enable the subcommands kmem, kwork, lock, sched and timechart. Signed-off-by: Uwe Kleine-König --- rules/libtraceevent.in | 8 +++++ rules/libtraceevent.make | 70 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 rules/libtraceevent.in create mode 100644 rules/libtraceevent.make diff --git a/rules/libtraceevent.in b/rules/libtraceevent.in new file mode 100644 index 000000000..de1c7675f --- /dev/null +++ b/rules/libtraceevent.in @@ -0,0 +1,8 @@ +## SECTION=project_specific + +config LIBTRACEEVENT + bool + prompt "libtraceevent" + select HOST_MESON + help + FIXME diff --git a/rules/libtraceevent.make b/rules/libtraceevent.make new file mode 100644 index 000000000..7acc9c965 --- /dev/null +++ b/rules/libtraceevent.make @@ -0,0 +1,70 @@ +# -*-makefile-*- +# +# Copyright (C) 2024 by Uwe Kleine-Koenig +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBTRACEEVENT) += libtraceevent + +# +# Paths and names +# +LIBTRACEEVENT_VERSION := 1.8.2 +LIBTRACEEVENT_MD5 := 671645965e835ef4236b96851fb889c9 +LIBTRACEEVENT := libtraceevent-$(LIBTRACEEVENT_VERSION) +LIBTRACEEVENT_SUFFIX := tar.xz +LIBTRACEEVENT_URL := https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git;tag=libtraceevent-$(LIBTRACEEVENT_VERSION) +LIBTRACEEVENT_SOURCE := $(SRCDIR)/$(LIBTRACEEVENT).$(LIBTRACEEVENT_SUFFIX) +LIBTRACEEVENT_DIR := $(BUILDDIR)/$(LIBTRACEEVENT) +LIBTRACEEVENT_LICENSE := LGPL-2.1 + GPL-2.0 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +#LIBTRACEEVENT_CONF_ENV := $(CROSS_ENV) + +# +# meson +# +LIBTRACEEVENT_CONF_TOOL := meson + +# There are some more configuration variables that don't have any effect given +# -Ddoc=false. +# Currently these are: docbook-suppress-sp, docbook-xls-172, htmldir, man-bold-literal +# +# The variable plugindir defaults to '' which is then interpreted as +# join_paths(libdir, 'traceevent/plugins') +LIBTRACEEVENT_CONF_OPT := \ + $(CROSS_MESON_USR) \ + -Ddoc=false \ + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libtraceevent.targetinstall: + @$(call targetinfo) + + @$(call install_init, libtraceevent) + @$(call install_fixup, libtraceevent, PRIORITY, optional) + @$(call install_fixup, libtraceevent, SECTION, base) + @$(call install_fixup, libtraceevent, AUTHOR, "Uwe Kleine-König ") + @$(call install_fixup, libtraceevent, DESCRIPTION, missing) + + @$(call install_lib, libtraceevent, 0, 0, 0644, libtraceevent) + + @for plugin in cfg80211 function futex hrtimer jbd2 kmem kvm mac80211 sched_switch scsi tlb xen; do \ + $(call install_lib, libtraceevent, 0, 0, 0644, libtraceevent/plugins/plugin_$${plugin}); \ + done + + @$(call install_finish, libtraceevent) + + @$(call touch) + +# vim: syntax=make -- 2.39.2