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.inc44
1 files changed, 44 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..ef5ba03e59
--- /dev/null
+++ b/meta-oe/recipes-devtools/pstack/pstack.inc
@@ -0,0 +1,44 @@
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
14S = "${UNPACKDIR}/${BPN}-${PV}"
15DEPENDS += "zlib xz libunwind elfutils"
16
17RDEPENDS:${PN} += "elfutils"
18
19do_install() {
20 install -d ${D}${bindir}
21 install -m 0755 ${B}/pstack ${D}${bindir}/pstack
22
23 install -d ${D}${libdir}
24 install -m 0755 ${B}/libprocman.so.${PV} ${D}${libdir}/libprocman.so.${PV}
25 ln -sf libprocman.so.${PV} ${D}${libdir}/libprocman.so
26 install -m 0755 ${B}/libdwelf.so.${PV} ${D}${libdir}/libdwelf.so.${PV}
27 ln -sf libdwelf.so.${PV} ${D}${libdir}/libdwelf.so
28}
29
30PACKAGES = "${PN}"
31FILES:${PN} = "${bindir}/pstack"
32FILES:${PN} += "${libdir}/libprocman.so.${PV}"
33FILES:${PN} += "${libdir}/libdwelf.so.${PV}"
34
35PACKAGES += "${PN}-dbg"
36FILES:${PN}-dbg += "${base_bindir}/.debug ${base_sbindir}/.debug ${bindir}/.debug ${sbindir}/.debug"
37
38PACKAGES += "${PN}-dev"
39FILES:${PN}-dev += "${base_libdir}/*.so"
40
41TOOLCHAIN = "gcc"
42
43COMPATIBLE_HOST:riscv64 = "null"
44COMPATIBLE_HOST:riscv32 = "null"