diff options
Diffstat (limited to 'import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap')
3 files changed, 67 insertions, 0 deletions
diff --git a/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap-module_git.bb b/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap-module_git.bb new file mode 100644 index 000000000..cb913271f --- /dev/null +++ b/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap-module_git.bb @@ -0,0 +1,22 @@ +# Released under the MIT license (see COPYING.MIT for the terms) + +require ktap.inc + +SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux" + +inherit module + +# See https://github.com/ktap/ktap/issues/80 +PNBLACKLIST[ktap-module] ?= "Not compatible with 3.19 kernel" + +# 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/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap.inc b/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap.inc new file mode 100644 index 000000000..c214a020d --- /dev/null +++ b/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap.inc @@ -0,0 +1,26 @@ +# 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" + +PV = "0.4+gitr${SRCPV}" +SRCREV = "c8401e07c89cdec9a5f673da4ddb12b7982b522b" +SRC_URI = "git://github.com/ktap/ktap.git" + +S = "${WORKDIR}/git" + +# Package config is abused as a general compile time configuration tool. + +# Only supports x86_64 for now!. Needs to be enabled for ktap-module too. +PACKAGECONFIG[ffi] = "" + +# Needed to resolve symbols in DSO and for sdt +PACKAGECONFIG[libelf] = ",,elfutils" + +PACKAGECONFIG ?= "libelf" + +EXTRA_OEMAKE = " \ + ${@bb.utils.contains('PACKAGECONFIG', 'libelf', '', 'NO_LIBELF=1', d)} \ + ${@bb.utils.contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} \ +" diff --git a/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap_git.bb b/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap_git.bb new file mode 100644 index 000000000..248e7bdd6 --- /dev/null +++ b/import-layers/meta-openembedded/meta-oe/recipes-kernel/ktap/ktap_git.bb @@ -0,0 +1,19 @@ +# 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" + +PNBLACKLIST[ktap] ?= "Depends on blacklisted kernel-module-ktapvm" + +# Only build the userspace app +EXTRA_OEMAKE += "ktap" + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${S}/ktap ${D}${bindir}/ +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" +RRECOMMENDS_${PN} = "kernel-module-ktapvm" |