Patchwork [2/2] ktap: add initial recipe

login
register
mail settings
Submitter Anders Darander
Date Oct. 16, 2013, 10:45 a.m.
Message ID <727ee4f43f7202f10c64cbffc5bd2ff6f965a3aa.1381920288.git.anders@chargestorm.se>
Download mbox | patch
Permalink /patch/60011/
State Accepted, archived
Commit adb7af3fe95668a85c79acc6f0a2dafc0a96f7e1
Headers show

Comments

Anders Darander - Oct. 16, 2013, 10:45 a.m.
Ktap is a new scripting dynamic tracing tool for Linux.

From kernel v3.13 it'll live inside the kernel tree, but for earlier kernels,
this recipe will be usefull.

Signed-off-by: Anders Darander <anders@chargestorm.se>
---
 meta-oe/recipes-kernel/ktap/ktap-module_0.3.bb | 19 +++++++++++++++++++
 meta-oe/recipes-kernel/ktap/ktap.inc           | 11 +++++++++++
 meta-oe/recipes-kernel/ktap/ktap_0.3.bb        | 17 +++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 meta-oe/recipes-kernel/ktap/ktap-module_0.3.bb
 create mode 100644 meta-oe/recipes-kernel/ktap/ktap.inc
 create mode 100644 meta-oe/recipes-kernel/ktap/ktap_0.3.bb

Patch

diff --git a/meta-oe/recipes-kernel/ktap/ktap-module_0.3.bb b/meta-oe/recipes-kernel/ktap/ktap-module_0.3.bb
new file mode 100644
index 0000000..12167ea
--- /dev/null
+++ b/meta-oe/recipes-kernel/ktap/ktap-module_0.3.bb
@@ -0,0 +1,19 @@ 
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+require ktap.inc
+
+DESCRIPTION = "KTAP is a scripting dynamic tracing tool for Linux"
+
+inherit module
+
+# Only build the module
+MAKE_TARGETS = "mod"
+
+# Kernel module packages MUST begin with 'kernel-module-', otherwise
+# multilib image generation can fail.
+#
+# The following line is only necessary if the recipe name does not begin
+# with kernel-module-.
+#
+PKG_${PN} = "kernel-module-${PN}"
+
diff --git a/meta-oe/recipes-kernel/ktap/ktap.inc b/meta-oe/recipes-kernel/ktap/ktap.inc
new file mode 100644
index 0000000..7fde165
--- /dev/null
+++ b/meta-oe/recipes-kernel/ktap/ktap.inc
@@ -0,0 +1,11 @@ 
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+HOMEPAGE = "http://www.ktap.org"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE-GPL;md5=eb723b61539feef013de476e68b5c50a"
+
+SRCREV = "6a5100b77321ce5792dfea34fa500ea537b1858c"
+SRC_URI = "git://github.com/ktap/ktap.git"
+
+S = "${WORKDIR}/git"
+
diff --git a/meta-oe/recipes-kernel/ktap/ktap_0.3.bb b/meta-oe/recipes-kernel/ktap/ktap_0.3.bb
new file mode 100644
index 0000000..f5dd62f
--- /dev/null
+++ b/meta-oe/recipes-kernel/ktap/ktap_0.3.bb
@@ -0,0 +1,17 @@ 
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+require ktap.inc
+
+SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux"
+DEPENDS = "ktap-module"
+
+# Only build the userspace app
+EXTRA_OEMAKE = "ktap"
+
+do_install() {
+    install -d ${D}${bindir}
+    install -m 0755 ${S}/ktap ${D}${bindir}/
+}
+
+RDEPENDS_${PN} = "kernel-module-ktapvm"
+