Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "Trace and analyze execution of a program written in C/C++" |
| 2 | HOMEPAGE = "https://github.com/namhyung/uftrace" |
| 3 | BUGTRACKER = "https://github.com/namhyung/uftrace/issues" |
| 4 | SECTION = "devel" |
| 5 | LICENSE = "GPLv2" |
| 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 | # v0.8.3 |
| 14 | SRCREV = "8b723a6fae2ef30495cd6279774fba9c95cd9c88" |
| 15 | SRC_URI = "git://github.com/namhyung/${BPN} \ |
| 16 | file://0001-include-dlfcn.h-for-RTLD_DEFAULT.patch \ |
| 17 | " |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | LDFLAGS_append_libc-musl = " -largp" |
| 21 | |
| 22 | def set_target_arch(d): |
| 23 | import re |
| 24 | arch = d.getVar('TARGET_ARCH', True) |
| 25 | if re.match(r'i.86', arch, re.I): |
| 26 | return 'i386' |
| 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)" |
| 41 | |
| 42 | # uftrace supports armv6 and above |
| 43 | COMPATIBLE_HOST_armv4 = 'null' |
| 44 | COMPATIBLE_HOST_armv5 = 'null' |