summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/pstack/pstack.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/pstack/pstack.inc')
-rw-r--r--meta-oe/recipes-devtools/pstack/pstack.inc43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/pstack/pstack.inc b/meta-oe/recipes-devtools/pstack/pstack.inc
new file mode 100644
index 0000000000..ee0518c9cc
--- /dev/null
+++ b/meta-oe/recipes-devtools/pstack/pstack.inc
@@ -0,0 +1,43 @@
1SUMMARY = "A utility to print stack traces of running processes"
2DESCRIPTION = "A from-scratch implementation of pstack using DWARF debugging and unwind information. \
3Works for C/C++, Go, Rust, and Python. A traditional pstack command can generally print a backtrace \
4of each thread in a running program, and sometimes from a core file. This version of pstack uses its \
5own self contained ELF and DWARF parsing library, libdwelf to parse the DWARF debug and unwind \
6information, to get a stack trace."
7HOMEPAGE = "https://github.com/peadar/pstack"
8SECTION = "devel"
9LICENSE = "BSD-2-Clause"
10LIC_FILES_CHKSUM = "file://LICENSE;md5=671019a96ba80415b696240ed2ca5e80"
11
12inherit cmake
13
14DEPENDS += "zlib xz libunwind elfutils"
15
16RDEPENDS:${PN} += "elfutils"
17
18do_install() {
19 install -d ${D}${bindir}
20 install -m 0755 ${B}/pstack ${D}${bindir}/pstack
21
22 install -d ${D}${libdir}
23 install -m 0755 ${B}/libprocman.so.${PV} ${D}${libdir}/libprocman.so.${PV}
24 ln -sf libprocman.so.${PV} ${D}${libdir}/libprocman.so
25 install -m 0755 ${B}/libdwelf.so.${PV} ${D}${libdir}/libdwelf.so.${PV}
26 ln -sf libdwelf.so.${PV} ${D}${libdir}/libdwelf.so
27}
28
29PACKAGES = "${PN}"
30FILES:${PN} = "${bindir}/pstack"
31FILES:${PN} += "${libdir}/libprocman.so.${PV}"
32FILES:${PN} += "${libdir}/libdwelf.so.${PV}"
33
34PACKAGES += "${PN}-dbg"
35FILES:${PN}-dbg += "${base_bindir}/.debug ${base_sbindir}/.debug ${bindir}/.debug ${sbindir}/.debug"
36
37PACKAGES += "${PN}-dev"
38FILES:${PN}-dev += "${base_libdir}/*.so"
39
40TOOLCHAIN = "gcc"
41
42COMPATIBLE_HOST:riscv64 = "null"
43COMPATIBLE_HOST:riscv32 = "null"