1 include $(TOPDIR
)/rules.mk
8 PKG_SOURCE_URL
:=git
://git.kernel.org
/pub
/scm
/linux
/kernel
/git
/rostedt
/trace-cmd.git
9 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE_VERSION
:=1776cf9a24f95b2623fe7ee380d708bb8c6d8a73
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 # PKG_MIRROR_MD5SUM:=6a08dfa2519a969d184e7bb5bb390620
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/trace-cmd
22 TITLE
:=Linux trace command line utility
26 define Package
/trace-cmd-extra
29 TITLE
:=Extra plugins for trace-cmd
37 PLUGINS_DIR
:= $(PKG_INSTALL_DIR
)/usr
/lib
/trace-cmd
/plugins
38 PLUGINS_ALL
= $(patsubst $(PLUGINS_DIR
)/plugin_
%.so
,%,$(wildcard $(PLUGINS_DIR
)/plugin_
*.so
))
39 PLUGINS_MAIN
:= function hrtimer mac80211 sched_switch
40 PLUGINS_EXTRA
= $(filter-out $(PLUGINS_MAIN
),$(PLUGINS_ALL
))
42 TARGET_CFLAGS
+= --std
=gnu99
44 define Package
/trace-cmd
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/lib
/trace-cmd
/plugins
46 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/trace-cmd
$(1)/usr
/bin
/
48 $(patsubst %,$(PLUGINS_DIR
)/plugin_
%.so
,$(PLUGINS_MAIN
)) \
49 $(1)/usr
/lib
/trace-cmd
/plugins
52 define Package
/trace-cmd-extra
/install
53 $(INSTALL_DIR
) $(1)/usr
/lib
/trace-cmd
/plugins
55 $(patsubst %,$(PLUGINS_DIR
)/plugin_
%.so
,$(PLUGINS_EXTRA
)) \
56 $(1)/usr
/lib
/trace-cmd
/plugins
59 $(eval
$(call BuildPackage
,trace-cmd
))
60 $(eval
$(call BuildPackage
,trace-cmd-extra
))