Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [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 | |
Andrew Geissler | 2ee498a | 2020-05-29 15:52:06 -0500 | [diff] [blame] | 13 | PV .= "+git${SRCPV}" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 14 | SRCREV = "a5e5a51d32bdfe59af8b453ca08d78cbdf0b3c61" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 15 | SRC_URI = "git://github.com/namhyung/${BPN} \ |
| 16 | " |
| 17 | S = "${WORKDIR}/git" |
| 18 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 19 | LDFLAGS_append_libc-musl = " -largp" |
| 20 | |
| 21 | def set_target_arch(d): |
| 22 | import re |
| 23 | arch = d.getVar('TARGET_ARCH') |
| 24 | if re.match(r'i.86', arch, re.I): |
| 25 | return 'i386' |
| 26 | elif re.match('armeb', arch, re.I): |
| 27 | return 'arm' |
| 28 | else: |
| 29 | return arch |
| 30 | |
| 31 | EXTRA_UFTRACE_OECONF = "ARCH=${@set_target_arch(d)} \ |
| 32 | with_elfutils=/use/libelf/from/sysroot" |
| 33 | |
| 34 | do_configure() { |
| 35 | ${S}/configure ${EXTRA_UFTRACE_OECONF} |
| 36 | } |
| 37 | |
| 38 | FILES_SOLIBSDEV = "" |
| 39 | FILES_${PN} += "${libdir}/*.so" |
| 40 | |
| 41 | COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm)" |
| 42 | |
| 43 | # uftrace supports armv6 and above |
| 44 | COMPATIBLE_HOST_armv4 = 'null' |
| 45 | COMPATIBLE_HOST_armv5 = 'null' |