diff options
Diffstat (limited to 'meta-oe/recipes-devtools/pstack/pstack.inc')
-rw-r--r-- | meta-oe/recipes-devtools/pstack/pstack.inc | 44 |
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 @@ | |||
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 | S = "${UNPACKDIR}/${BPN}-${PV}" | ||
15 | DEPENDS += "zlib xz libunwind elfutils" | ||
16 | |||
17 | RDEPENDS:${PN} += "elfutils" | ||
18 | |||
19 | do_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 | |||
30 | PACKAGES = "${PN}" | ||
31 | FILES:${PN} = "${bindir}/pstack" | ||
32 | FILES:${PN} += "${libdir}/libprocman.so.${PV}" | ||
33 | FILES:${PN} += "${libdir}/libdwelf.so.${PV}" | ||
34 | |||
35 | PACKAGES += "${PN}-dbg" | ||
36 | FILES:${PN}-dbg += "${base_bindir}/.debug ${base_sbindir}/.debug ${bindir}/.debug ${sbindir}/.debug" | ||
37 | |||
38 | PACKAGES += "${PN}-dev" | ||
39 | FILES:${PN}-dev += "${base_libdir}/*.so" | ||
40 | |||
41 | TOOLCHAIN = "gcc" | ||
42 | |||
43 | COMPATIBLE_HOST:riscv64 = "null" | ||
44 | COMPATIBLE_HOST:riscv32 = "null" | ||