mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-18 21:21:58 +02:00
Fixes a build race seen after 0.13 upgrade | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/uftrace/0.13-r0/git/cmds/dump.c: In function 'dump_mermaid_footer': | /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/uftrace/0.13-r0/git/cmds/dump.c:1347:10: fatal error: utils/mermaid.html.cstr: No such file or directory | 1347 | #include "utils/mermaid.html.cstr" /* This file is a converted of mermaid.html to one string literal in build-time */ | | ^~~~~~~~~~~~~~~~~~~~~~~~~ | compilation terminated. | make[1]: *** [Makefile:310: /home/pokybuild/yocto-worker/meta-oe/build/build/tmp/work/core2-64-poky-linux/uftrace/0.13-r0/build/cmds/dump.o] Error 1 Signed-off-by: Khem Raj <raj.khem@gmail.com>
46 lines
1.2 KiB
BlitzBasic
46 lines
1.2 KiB
BlitzBasic
SUMMARY = "Trace and analyze execution of a program written in C/C++"
|
|
HOMEPAGE = "https://github.com/namhyung/uftrace"
|
|
BUGTRACKER = "https://github.com/namhyung/uftrace/issues"
|
|
SECTION = "devel"
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
DEPENDS = "elfutils"
|
|
DEPENDS:append:libc-musl = " argp-standalone"
|
|
|
|
inherit autotools
|
|
|
|
SRCREV = "53ec12d40701cf73ddcf5db8cff63b54736d0eda"
|
|
SRC_URI = "git://github.com/namhyung/${BPN};branch=master;protocol=https \
|
|
file://0001-build-Fix-a-build-race-related-to-utils-mermaid.html.patch \
|
|
"
|
|
S = "${WORKDIR}/git"
|
|
|
|
LDFLAGS:append:libc-musl = " -largp"
|
|
|
|
def set_target_arch(d):
|
|
import re
|
|
arch = d.getVar('TARGET_ARCH')
|
|
if re.match(r'i.86', arch, re.I):
|
|
return 'i386'
|
|
elif re.match('armeb', arch, re.I):
|
|
return 'arm'
|
|
else:
|
|
return arch
|
|
|
|
EXTRA_UFTRACE_OECONF = "ARCH=${@set_target_arch(d)} \
|
|
with_elfutils=/use/libelf/from/sysroot"
|
|
|
|
do_configure() {
|
|
${S}/configure ${EXTRA_UFTRACE_OECONF}
|
|
}
|
|
|
|
FILES_SOLIBSDEV = ""
|
|
FILES:${PN} += "${libdir}/*.so"
|
|
|
|
COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm)"
|
|
|
|
# uftrace supports armv6 and above
|
|
COMPATIBLE_HOST:armv4 = 'null'
|
|
COMPATIBLE_HOST:armv5 = 'null'
|