You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2013-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lttng-modules
  9. PKG_VERSION:=2.10.8
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=https://lttng.org/files/$(PKG_NAME)/
  13. PKG_HASH:=fe1d269bca723e8948af871c322c37d3900e647cdc5eb3efbe821e434beee44c
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=LGPL-2.1 GPL-2.0 MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/kernel.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. define KernelPackage/lttng
  20. SUBMENU:=Other modules
  21. TITLE:=Linux Trace Toolkit: next generation (kernel modules)
  22. URL:=https://lttng.org/
  23. DEPENDS:= @!TARGET_uml @KERNEL_FTRACE_SYSCALLS
  24. FILES:= \
  25. $(PKG_BUILD_DIR)/lttng-*.$(LINUX_KMOD_SUFFIX) \
  26. $(PKG_BUILD_DIR)/lib/lttng-*.$(LINUX_KMOD_SUFFIX) \
  27. $(PKG_BUILD_DIR)/probes/lttng-*.$(LINUX_KMOD_SUFFIX)
  28. endef
  29. define Build/Compile
  30. $(MAKE) -C "$(LINUX_DIR)" \
  31. ARCH="$(LINUX_KARCH)" \
  32. CROSS_COMPILE="$(TARGET_CROSS)" \
  33. M="$(PKG_BUILD_DIR)" \
  34. V="$(V)" \
  35. modules
  36. endef
  37. $(eval $(call KernelPackage,lttng))