diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-oe/recipes-kernel/ktap | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-kernel/ktap')
-rw-r--r-- | meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb | 22 | ||||
-rw-r--r-- | meta-oe/recipes-kernel/ktap/ktap.inc | 13 | ||||
-rw-r--r-- | meta-oe/recipes-kernel/ktap/ktap_0.4.bb | 26 |
3 files changed, 61 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb b/meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb new file mode 100644 index 000000000..62f2a99a2 --- /dev/null +++ b/meta-oe/recipes-kernel/ktap/ktap-module_0.4.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
2 | |||
3 | require ktap.inc | ||
4 | |||
5 | SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux" | ||
6 | |||
7 | inherit module | ||
8 | |||
9 | # Available package configs: ffi (only supported on x86_64) | ||
10 | PACKAGECONFIG ?= "" | ||
11 | |||
12 | # Only build the module | ||
13 | MAKE_TARGETS = "${@base_contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} mod" | ||
14 | |||
15 | # Kernel module packages MUST begin with 'kernel-module-', otherwise | ||
16 | # multilib image generation can fail. | ||
17 | # | ||
18 | # The following line is only necessary if the recipe name does not begin | ||
19 | # with kernel-module-. | ||
20 | # | ||
21 | PKG_${PN} = "kernel-module-${PN}" | ||
22 | |||
diff --git a/meta-oe/recipes-kernel/ktap/ktap.inc b/meta-oe/recipes-kernel/ktap/ktap.inc new file mode 100644 index 000000000..93a4e2ca3 --- /dev/null +++ b/meta-oe/recipes-kernel/ktap/ktap.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
2 | |||
3 | HOMEPAGE = "http://www.ktap.org" | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE-GPL;md5=eb723b61539feef013de476e68b5c50a" | ||
6 | |||
7 | SRCREV = "c8401e07c89cdec9a5f673da4ddb12b7982b522b" | ||
8 | SRC_URI = "git://github.com/ktap/ktap.git" | ||
9 | |||
10 | S = "${WORKDIR}/git" | ||
11 | |||
12 | # Package config is abused as a general compile time configuration tool. | ||
13 | PACKAGECONFIG[ffi] = "" | ||
diff --git a/meta-oe/recipes-kernel/ktap/ktap_0.4.bb b/meta-oe/recipes-kernel/ktap/ktap_0.4.bb new file mode 100644 index 000000000..cbdabf82d --- /dev/null +++ b/meta-oe/recipes-kernel/ktap/ktap_0.4.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
2 | |||
3 | require ktap.inc | ||
4 | |||
5 | SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux" | ||
6 | DEPENDS = "ktap-module" | ||
7 | |||
8 | #Available package configs: | ||
9 | # libelf - needed to resolve symbols in DSO and for sdt | ||
10 | # ffi - only supports x86_64 for now!. Needs to be enabled for ktap-module too. | ||
11 | PACKAGECONFIG ?= "libelf" | ||
12 | |||
13 | PACKAGECONFIG[libelf] = ",,elfutils" | ||
14 | |||
15 | # Only build the userspace app | ||
16 | EXTRA_OEMAKE = "${@base_contains('PACKAGECONFIG', 'libelf', '', 'NO_LIBELF=1', d)} \ | ||
17 | ${@base_contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} \ | ||
18 | ktap" | ||
19 | |||
20 | do_install() { | ||
21 | install -d ${D}${bindir} | ||
22 | install -m 0755 ${S}/ktap ${D}${bindir}/ | ||
23 | } | ||
24 | |||
25 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
26 | RDEPENDS_${PN} = "kernel-module-ktapvm" | ||