1705982a5SPatrick WilliamsSUMMARY = "Boot performance graphing tool"
2705982a5SPatrick WilliamsDESCRIPTION = "For systemd-bootchart, several proc debug interfaces are required in the kernel config: \
3705982a5SPatrick Williams  CONFIG_SCHEDSTATS \
4705982a5SPatrick Williamsbelow is optional, for additional info: \
5705982a5SPatrick Williams  CONFIG_SCHED_DEBUG"
6705982a5SPatrick WilliamsHOMEPAGE = "https://github.com/systemd/systemd-bootchart"
7705982a5SPatrick WilliamsLICENSE = "LGPL-2.1-only & GPL-2.0-only"
8705982a5SPatrick WilliamsLIC_FILES_CHKSUM = "file://LICENSE.LGPL2.1;md5=4fbd65380cdd255951079008b364516c \
9705982a5SPatrick Williams                    file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe"
10705982a5SPatrick Williams
11705982a5SPatrick WilliamsSRC_URI = "git://github.com/systemd/systemd-bootchart.git;protocol=https;branch=main \
12705982a5SPatrick Williams           file://mips64.patch \
13705982a5SPatrick Williams           file://no_lto.patch \
14*8460358cSPatrick Williams           file://0001-Add-riscv32-support.patch \
15705982a5SPatrick Williams"
16705982a5SPatrick Williams
17705982a5SPatrick WilliamsSRC_URI:append:libc-musl = " \
18705982a5SPatrick Williams    file://0001-comparison_fn_t-is-glibc-specific-use-raw-signature-.patch \
19705982a5SPatrick Williams    file://0002-musl-does-not-provide-printf-h.patch \
20705982a5SPatrick Williams    file://0003-musl-does-not-provide-canonicalize_file_name.patch \
21edff4923SAndrew Geissler    file://0001-Define-portable-basename-function.patch \
22705982a5SPatrick Williams    "
23705982a5SPatrick Williams
24705982a5SPatrick Williams
25705982a5SPatrick WilliamsSRCREV = "8ab9680a1bd5eb8fe7a7dcc44897af7ee41e56e7"
26705982a5SPatrick Williams
27705982a5SPatrick WilliamsS = "${WORKDIR}/git"
28705982a5SPatrick Williams
29705982a5SPatrick WilliamsDEPENDS = "systemd libxslt-native xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native intltool"
30705982a5SPatrick Williams
31705982a5SPatrick Williamsinherit pkgconfig autotools systemd features_check
32705982a5SPatrick Williams
33705982a5SPatrick WilliamsREQUIRED_DISTRO_FEATURES = "systemd"
34705982a5SPatrick Williams
35705982a5SPatrick WilliamsSYSTEMD_SERVICE:${PN} = "systemd-bootchart.service"
36705982a5SPatrick Williams
37705982a5SPatrick Williamsdo_configure:prepend() {
38705982a5SPatrick Williams    # intltool.m4 is a soft link to /usr/share/aclocal/m4, delete it and use the one in our sysroot
39705982a5SPatrick Williams    rm -f ${S}/m4/intltool.m4
40705982a5SPatrick Williams}
41705982a5SPatrick Williams
42705982a5SPatrick WilliamsFILES:${PN} += "${systemd_unitdir}/systemd-bootchart"
43705982a5SPatrick Williams
44705982a5SPatrick WilliamsEXTRA_OECONF = " --with-rootprefix=${root_prefix} \
45705982a5SPatrick Williams                 --with-rootlibdir=${base_libdir}"
46