OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | include $(TOPDIR)/rules.mk |
2 | |||
3 | PKG_NAME:=trace-cmd |
||
4 | PKG_VERSION:=v2.6.1 |
||
5 | PKG_RELEASE=1 |
||
6 | |||
7 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
||
8 | PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git/snapshot/ |
||
9 | PKG_HASH:=4eb79001778a77c0ada10265e7f4b5515a3e21a46f0a15c2e8cc614efdf3f5df |
||
10 | PKG_INSTALL:=1 |
||
11 | PKG_USE_MIPS16:=0 |
||
12 | PKG_LICENSE:=GPL-2.0 |
||
13 | |||
14 | PKG_BUILD_PARALLEL:=1 |
||
15 | |||
16 | include $(INCLUDE_DIR)/package.mk |
||
17 | |||
18 | define Package/trace-cmd |
||
19 | SECTION:=devel |
||
20 | CATEGORY:=Development |
||
21 | TITLE:=Linux trace command line utility |
||
22 | DEPENDS:= |
||
23 | endef |
||
24 | |||
25 | define Package/trace-cmd-extra |
||
26 | SECTION:=devel |
||
27 | CATEGORY:=Development |
||
28 | TITLE:=Extra plugins for trace-cmd |
||
29 | DEPENDS:= |
||
30 | endef |
||
31 | |||
32 | MAKE_FLAGS += \ |
||
33 | NO_PYTHON=1 \ |
||
34 | prefix=/usr |
||
35 | |||
36 | PLUGINS_DIR := $(PKG_INSTALL_DIR)/usr/lib/trace-cmd/plugins |
||
37 | PLUGINS_MAIN := function hrtimer mac80211 sched_switch |
||
38 | |||
39 | TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE |
||
40 | |||
41 | define Package/trace-cmd/install |
||
42 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/trace-cmd/plugins |
||
43 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/trace-cmd $(1)/usr/bin/ |
||
44 | $(CP) \ |
||
45 | $(patsubst %,$(PLUGINS_DIR)/plugin_%.so,$(PLUGINS_MAIN)) \ |
||
46 | $(1)/usr/lib/trace-cmd/plugins |
||
47 | endef |
||
48 | |||
49 | define Package/trace-cmd-extra/install |
||
50 | $(INSTALL_DIR) $(1)/usr/lib/trace-cmd/plugins |
||
51 | $(CP) \ |
||
52 | $$(patsubst %,$(PLUGINS_DIR)/plugin_%.so, \ |
||
53 | $$(filter-out $(PLUGINS_MAIN), \ |
||
54 | $$(patsubst $(PLUGINS_DIR)/plugin_%.so,%, \ |
||
55 | $$(wildcard $(PLUGINS_DIR)/plugin_*.so)))) \ |
||
56 | $(1)/usr/lib/trace-cmd/plugins |
||
57 | endef |
||
58 | |||
59 | $(eval $(call BuildPackage,trace-cmd)) |
||
60 | $(eval $(call BuildPackage,trace-cmd-extra)) |