diff options
Diffstat (limited to 'meta-oe/recipes-devtools/pstack/pstack.inc')
-rw-r--r-- | meta-oe/recipes-devtools/pstack/pstack.inc | 43 |
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 @@ | |||
1 | SUMMARY = "A utility to print stack traces of running processes" | ||
2 | DESCRIPTION = "A from-scratch implementation of pstack using DWARF debugging and unwind information. \ | ||
3 | Works for C/C++, Go, Rust, and Python. A traditional pstack command can generally print a backtrace \ | ||
4 | of each thread in a running program, and sometimes from a core file. This version of pstack uses its \ | ||
5 | own self contained ELF and DWARF parsing library, libdwelf to parse the DWARF debug and unwind \ | ||
6 | information, to get a stack trace." | ||
7 | HOMEPAGE = "https://github.com/peadar/pstack" | ||
8 | SECTION = "devel" | ||
9 | LICENSE = "BSD-2-Clause" | ||
10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=671019a96ba80415b696240ed2ca5e80" | ||
11 | |||
12 | inherit cmake | ||
13 | |||
14 | DEPENDS += "zlib xz libunwind elfutils" | ||
15 | |||
16 | RDEPENDS:${PN} += "elfutils" | ||
17 | |||
18 | do_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 | |||
29 | PACKAGES = "${PN}" | ||
30 | FILES:${PN} = "${bindir}/pstack" | ||
31 | FILES:${PN} += "${libdir}/libprocman.so.${PV}" | ||
32 | FILES:${PN} += "${libdir}/libdwelf.so.${PV}" | ||
33 | |||
34 | PACKAGES += "${PN}-dbg" | ||
35 | FILES:${PN}-dbg += "${base_bindir}/.debug ${base_sbindir}/.debug ${bindir}/.debug ${sbindir}/.debug" | ||
36 | |||
37 | PACKAGES += "${PN}-dev" | ||
38 | FILES:${PN}-dev += "${base_libdir}/*.so" | ||
39 | |||
40 | TOOLCHAIN = "gcc" | ||
41 | |||
42 | COMPATIBLE_HOST:riscv64 = "null" | ||
43 | COMPATIBLE_HOST:riscv32 = "null" | ||