aboutsummaryrefslogtreecommitdiffstats
path: root/package/devel/trace-cmd/Makefile
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-12-29 17:09:27 -0800
committerHauke Mehrtens <hauke@hauke-m.de>2021-01-01 19:55:59 +0100
commitf97b3ad7269a3c816469d8aca28145797084ea1e (patch)
tree799219b4665b7df06eaac4a646e41466e28269fc /package/devel/trace-cmd/Makefile
parent7aa8c00e4b716f91d2b0d59c4101a29860ad929f (diff)
downloadupstream-f97b3ad7269a3c816469d8aca28145797084ea1e.tar.gz
upstream-f97b3ad7269a3c816469d8aca28145797084ea1e.tar.bz2
upstream-f97b3ad7269a3c816469d8aca28145797084ea1e.zip
trace-cmd: update to 2.9.1
Fixed license information. Adjusted Makefile to new install paths. Backported upstream patch to fix compilation with musl. Replaces local and incomplete patch. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'package/devel/trace-cmd/Makefile')
-rw-r--r--package/devel/trace-cmd/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/package/devel/trace-cmd/Makefile b/package/devel/trace-cmd/Makefile
index d1f73ae9bb..e15b04ad23 100644
--- a/package/devel/trace-cmd/Makefile
+++ b/package/devel/trace-cmd/Makefile
@@ -1,16 +1,18 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=trace-cmd
-PKG_VERSION:=v2.6.1
-PKG_RELEASE:=3
+PKG_VERSION:=v2.9.1
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/
-PKG_HASH:=4eb79001778a77c0ada10265e7f4b5515a3e21a46f0a15c2e8cc614efdf3f5df
+PKG_HASH:=9404fc3cf540ea795304608068c9db6cdb38b90584c7f3c43249785913d54b38
+
+PKG_LICENSE:=GPL-2.0-only
+PKG_LICENSE_FILES:=COPYING
+
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
-PKG_LICENSE:=GPL-2.0
-
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
@@ -34,27 +36,27 @@ MAKE_FLAGS += \
NO_AUDIT=1 \
prefix=/usr
-PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins
+PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/traceevent/plugins
PLUGINS_MAIN := function hrtimer mac80211 sched_switch
TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE
define Package/trace-cmd/install
- $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/trace-cmd/plugins
+ $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/traceevent/plugins
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/trace-cmd $(1)/usr/bin/
$(CP) \
$(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_MAIN)) \
- $(1)/usr/lib/trace-cmd/plugins
+ $(1)/usr/lib/traceevent/plugins
endef
define Package/trace-cmd-extra/install
- $(INSTALL_DIR) $(1)/usr/lib/trace-cmd/plugins
+ $(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/trace-cmd/plugins
+ $(1)/usr/lib/traceevent/plugins
endef
$(eval $(call BuildPackage,trace-cmd))