[oe-commits] [meta-openembedded] 09/15: Ply: Add recipe for git version

git at git.openembedded.org git at git.openembedded.org
Fri Feb 21 16:50:54 UTC 2020


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 7ed78ecadec8710c6c73c784cb34625dc08fa64a
Author: Leo Yan <leo.yan at linaro.org>
AuthorDate: Fri Feb 21 10:43:40 2020 +0000

    Ply: Add recipe for git version
    
    Ply is a light-weight eBPF tool which compiles ply script or one-liner
    to Linux BPF programs and attaches to kprobes and tracepoints.  It
    doesn't require external dependencies except libc, so it's very friendly
    for embedded system usage.
    
    This patch adds the recipe to support ply building for git version.
    
    Signed-off-by: Leo Yan <leo.yan at linaro.org>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-devtools/ply/ply_git.bb | 38 +++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/meta-oe/recipes-devtools/ply/ply_git.bb b/meta-oe/recipes-devtools/ply/ply_git.bb
new file mode 100644
index 0000000..2139588
--- /dev/null
+++ b/meta-oe/recipes-devtools/ply/ply_git.bb
@@ -0,0 +1,38 @@
+SUMMARY = "Ply: A light-weight dynamic tracer for eBPF"
+HOMEPAGE = "https://github.com/iovisor/ply"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+DEPENDS += "bison-native"
+
+SRC_URI = "git://github.com/iovisor/ply"
+SRCREV = "aa5b9ac31307ec1acece818be334ef801c802a12"
+
+S = "${WORKDIR}/git"
+
+do_configure_prepend() {
+    ( cd ${S}; ./autogen.sh; cd - )
+}
+
+do_configure() {
+    ( cd ${S}; ./configure --host=${TARGET_SYS} --prefix=${D}${prefix}; cd - )
+}
+
+do_compile() {
+    ( cd ${S}; oe_runmake; cd - )
+}
+
+do_install() {
+    ( cd ${S}; oe_runmake install; cd - )
+}
+
+do_install_append() {
+    chrpath -d ${D}${prefix}/sbin/ply
+}
+
+# x86, mips32/64, riscv64 are not supported in this release
+COMPATIBLE_HOST_i586 = 'null'
+COMPATIBLE_HOST_i686 = 'null'
+COMPATIBLE_HOST_mipsarchn32 = "null"
+COMPATIBLE_HOST_mipsarchn64 = "null"
+COMPATIBLE_HOST_riscv64 = "null"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list