blob: 9a5e8006c7889664b911d96f48d0a0ea034bfaee [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Graphical trace viewer for Ftrace"
2LICENSE = "GPLv2"
3
4require trace-cmd.inc
5
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
7 file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e"
8
9DEPENDS = "gtk+ libxml2"
10RDEPENDS_${PN} = "trace-cmd"
11
Patrick Williamsf1e5d692016-03-30 15:21:19 -050012inherit distro_features_check
13ANY_OF_DISTRO_FEATURES = "${GTK2DISTROFEATURES}"
14
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015EXTRA_OEMAKE = "\
16 'prefix=${prefix}' \
17 'bindir_relative=${@oe.path.relative(prefix, bindir)}' \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018 'libdir=${libdir}' \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019 NO_PYTHON=1 \
20 gui \
21"
22do_configure_prepend() {
23 # Make sure the recompile is OK
24 rm -f ${B}/.*.d
25}
26
27do_install() {
28 oe_runmake DESTDIR="${D}" install_gui
29 rm ${D}${bindir}/trace-cmd
30 rm -rf ${D}${libdir}/trace-cmd
Brad Bishopd7bf8c12018-02-25 22:55:05 -050031 rm -rf ${D}${sysconfdir}/bash_completion.d/trace-cmd.bash
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032 rmdir ${D}${libdir}
33}