1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=trace-cmd
  3. PKG_VERSION:=v3.1.6
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/
  7. PKG_HASH:=f9198ea306deee9cda3b262342b03b6029e82c1b9c671ba521739a9703e115b9
  8. PKG_LICENSE:=GPL-2.0-only
  9. PKG_LICENSE_FILES:=COPYING
  10. PKG_INSTALL:=1
  11. PKG_BUILD_FLAGS:=no-mips16
  12. PKG_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/trace-cmd
  15. SECTION:=devel
  16. CATEGORY:=Development
  17. TITLE:=Linux trace command line utility
  18. DEPENDS:=+libtracefs +zlib
  19. endef
  20. define Package/trace-cmd-extra
  21. SECTION:=devel
  22. CATEGORY:=Development
  23. TITLE:=Extra plugins for trace-cmd
  24. DEPENDS:=+libtraceevent-extra
  25. endef
  26. MAKE_FLAGS += \
  27. NO_PYTHON=1 \
  28. NO_AUDIT=1 \
  29. NO_LIBZSTD=1 \
  30. prefix=/usr
  31. TARGET_CFLAGS += --std=gnu99 -D_GNU_SOURCE
  32. define Package/trace-cmd/install
  33. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/traceevent/plugins
  34. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/trace-cmd $(1)/usr/bin/
  35. endef
  36. $(eval $(call BuildPackage,trace-cmd))
  37. $(eval $(call BuildPackage,trace-cmd-extra))