aboutsummaryrefslogtreecommitdiff
path: root/package/ktap/ktap.mk
diff options
context:
space:
mode:
authorGravatar Anders Darander <anders@chargestorm.se>2013-12-10 12:59:41 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-12-10 13:19:31 +0100
commit3e1e7db3cc677e9d68a7f0ec74406ab986dcc512 (patch)
treeb569a8590528feaefd00ed3d5933f0e7d38bbde9 /package/ktap/ktap.mk
parent63e1c6b207c21a5a638332cc561cea001452ebc9 (diff)
downloadbuildroot-3e1e7db3cc677e9d68a7f0ec74406ab986dcc512.tar.gz
buildroot-3e1e7db3cc677e9d68a7f0ec74406ab986dcc512.tar.bz2
ktap: new package
Add ktap, a script-based dynamic tracing tool. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/ktap/ktap.mk')
-rw-r--r--package/ktap/ktap.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/ktap/ktap.mk b/package/ktap/ktap.mk
new file mode 100644
index 0000000000..a5d277a5aa
--- /dev/null
+++ b/package/ktap/ktap.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# ktap, script-based dynamic tracing tool
+#
+################################################################################
+
+KTAP_VERSION = v0.3
+KTAP_SITE = $(call github,ktap,ktap,$(KTAP_VERSION))
+KTAP_SOURCE = v$(KTAP_VERSION).tar.gz
+KTAP_LICENSE = GPLv2
+KTAP_LICENSE_FILES = LICENSE-GPL
+
+KTAP_DEPENDENCIES = linux
+
+define KTAP_BUILD_CMDS
+ $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) ktap
+ $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNEL_SRC=$(LINUX_DIR) KVERSION=$(LINUX_VERSION_PROBED) mod
+endef
+
+define KTAP_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m755 $(@D)/ktap $(TARGET_DIR)/usr/bin/ktap
+ $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNEL_SRC=$(LINUX_DIR) KVERSION=$(LINUX_VERSION_PROBED) modules_install
+endef
+
+$(eval $(generic-package))