1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.6.1
  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_MD5SUM:=ccfb50ad922cdaf54a809e2d9de23da4
  14. PKG_LICENSE:=LGPL-2.1 GPL-2.0 MIT
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  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. SUBDIRS="$(PKG_BUILD_DIR)" \
  34. V="$(V)" \
  35. modules
  36. endef
  37. $(eval $(call KernelPackage,lttng))