mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-14 10:09:07 +01:00
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Changelog: 13701b5 libtraceevent: 1.9 6a3a815 libtraceevent: Add tep_load_modules() API 31fc91b libtraceevent: Add tep_parse_last_boot_info() 5e4ef1f libtraceevent: Add tep_btf_list_args() aa49dce libtraceevent: Split out btf func init code from tep_btf_print_args() 239b063 libtraceevent: Do not change names of functions not of this library c284dec libtraceevent: Handle __get_stacktrace() 1ba1262 libtraceevent: Move back to 1.8.99 263459e libtraceevent: Use BTF_INT_BITS/OFFSET() when parsing int parameters 0294b73 libtraceevent utest: Add simple test to test BTF parsing 38e03ac libtraceevent: Have BTF find functions with extra characters b441fff libtraceevent: Add man page for the new BTF functions 87f30d9 libtraceevent: Add loading of BTF to the tep handle 3488dc9 libtraceevent: Move to 1.9 devel Link: https://github.com/openwrt/openwrt/pull/21886 Signed-off-by: Nick Hainke <vincent@systemli.org>
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libtraceevent
|
|
PKG_VERSION:=1.9.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/snapshot/
|
|
PKG_HASH:=e6d82cb2392d04866203387fa092692e4282ccc36c8235dc129afd1ceba12684
|
|
|
|
PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
define Package/libtraceevent
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Linux kernel trace event library
|
|
URL:=https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
|
|
ABI_VERSION:=0
|
|
endef
|
|
|
|
define Package/libtraceevent/description
|
|
The libtraceevent library provides APIs to access kernel tracepoint events, located in
|
|
the tracefs file system under the events directory.
|
|
endef
|
|
|
|
define Package/libtraceevent-extra
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Extra plugins for libtraceevent
|
|
DEPENDS:=+libtraceevent
|
|
endef
|
|
|
|
MESON_ARGS += \
|
|
-Ddoc=false
|
|
|
|
PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/traceevent/plugins
|
|
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/traceevent $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtraceevent.{a,so*} $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtraceevent.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libtraceevent/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtraceevent.so.* $(1)/usr/lib/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) \
|
|
$(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_MAIN)) \
|
|
$(1)/usr/lib/traceevent/plugins
|
|
endef
|
|
|
|
define Package/libtraceevent-extra/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/traceevent/plugins
|
|
$(CP) \
|
|
$$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \
|
|
$$(filter-out $(PLUGINS_MAIN), \
|
|
$$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \
|
|
$$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \
|
|
$(1)/usr/lib/traceevent/plugins
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libtraceevent))
|
|
$(eval $(call BuildPackage,libtraceevent-extra))
|