diff options
Diffstat (limited to 'meta-oe/recipes-devtools/uftrace/uftrace_0.17.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/uftrace/uftrace_0.17.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/uftrace/uftrace_0.17.bb b/meta-oe/recipes-devtools/uftrace/uftrace_0.17.bb new file mode 100644 index 0000000000..8fecadb22f --- /dev/null +++ b/meta-oe/recipes-devtools/uftrace/uftrace_0.17.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | SUMMARY = "Trace and analyze execution of a program written in C/C++, Rust and Python" | ||
| 2 | HOMEPAGE = "https://github.com/namhyung/uftrace" | ||
| 3 | BUGTRACKER = "https://github.com/namhyung/uftrace/issues" | ||
| 4 | SECTION = "devel" | ||
| 5 | LICENSE = "GPL-2.0-only" | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 7 | |||
| 8 | DEPENDS = "elfutils" | ||
| 9 | DEPENDS:append:libc-musl = " argp-standalone" | ||
| 10 | |||
| 11 | inherit autotools | ||
| 12 | |||
| 13 | SRCREV = "b0d936107edcefb519abbc9c363ca40daaac23b3" | ||
| 14 | SRC_URI = "git://github.com/namhyung/${BPN};branch=master;protocol=https \ | ||
| 15 | file://0001-include-libgen.h-for-basename.patch" | ||
| 16 | S = "${WORKDIR}/git" | ||
| 17 | |||
| 18 | LDFLAGS:append:libc-musl = " -largp" | ||
| 19 | |||
| 20 | def set_target_arch(d): | ||
| 21 | import re | ||
| 22 | arch = d.getVar('TARGET_ARCH') | ||
| 23 | if re.match(r'i.86', arch, re.I): | ||
| 24 | return 'i386' | ||
| 25 | elif re.match('armeb', arch, re.I): | ||
| 26 | return 'arm' | ||
| 27 | else: | ||
| 28 | return arch | ||
| 29 | |||
| 30 | EXTRA_UFTRACE_OECONF = "ARCH=${@set_target_arch(d)} \ | ||
| 31 | with_elfutils=/use/libelf/from/sysroot" | ||
| 32 | |||
| 33 | do_configure() { | ||
| 34 | ${S}/configure ${EXTRA_UFTRACE_OECONF} | ||
| 35 | } | ||
| 36 | |||
| 37 | FILES_SOLIBSDEV = "" | ||
| 38 | FILES:${PN} += "${libdir}/*.so" | ||
| 39 | |||
| 40 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|riscv64)" | ||
| 41 | |||
| 42 | # uftrace supports armv6 and above | ||
| 43 | COMPATIBLE_HOST:armv4 = 'null' | ||
| 44 | COMPATIBLE_HOST:armv5 = 'null' | ||
