diff options
author | Darren Hart <dvhart@linux.intel.com> | 2010-12-28 17:10:22 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-06 10:06:29 +0000 |
commit | 39305385868901248c569456a1c7e30cc5166cad (patch) | |
tree | a7726cf0794ae9bd2d2ff7053c54932c1af30866 | |
parent | 656409795206a45284694b2c43d83c1cdccc0c8c (diff) | |
download | poky-39305385868901248c569456a1c7e30cc5166cad.tar.gz |
kernelshark: add ftrace gui viewer
The trace-cmd source includes a graphical trace viewer, but we
don't want to make the trace-cmd recipe depend on gtk+. This
patch adds a second recipe in the meta/recipes-kernel/trace-cmd
directory which uses the trace-cmd SRCREV and RDEPENDS on trace-cmd
to ensure compatibility.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
CC: Richard Purdie <richard.purdie@linuxfoundation.org>
CC: Saul Wold <sgw@linux.intel.com>
-rw-r--r-- | meta/conf/distro/include/poky-default-revisions.inc | 4 | ||||
-rw-r--r-- | meta/recipes-kernel/trace-cmd/kernelshark_git.bb | 21 |
2 files changed, 24 insertions, 1 deletions
diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc index fb6b9e7c48..c11faf9316 100644 --- a/meta/conf/distro/include/poky-default-revisions.inc +++ b/meta/conf/distro/include/poky-default-revisions.inc | |||
@@ -167,7 +167,9 @@ SRCREV_pn-swabber-native ??= "a0792390c5d6d5a5bade7ab155c80eef3f30fa52" | |||
167 | SRCREV_pn-sysprof ??= "38a6af1f0a45e528fd2842983da71e0f23c70d6a" | 167 | SRCREV_pn-sysprof ??= "38a6af1f0a45e528fd2842983da71e0f23c70d6a" |
168 | SRCREV_pn-table ??= "4b267533ce16656cba4104fc39dc12709c1bdddf" | 168 | SRCREV_pn-table ??= "4b267533ce16656cba4104fc39dc12709c1bdddf" |
169 | SRCREV_pn-tasks ??= "ea52d46d691c5fce4473ea4e24a35411381f3a65" | 169 | SRCREV_pn-tasks ??= "ea52d46d691c5fce4473ea4e24a35411381f3a65" |
170 | SRCREV_pn-trace-cmd ??= "0d252224626bd6926324f023a65f20c165232891" | 170 | TRACECMDREV ?= "0d252224626bd6926324f023a65f20c165232891" |
171 | SRCREV_pn-trace-cmd ??= ${TRACECMDREV} | ||
172 | SRCREV_pn-kernelshark ??= ${TRACECMDREV} | ||
171 | SRCREV_pn-tidy ??= "e25416e1293e1074bfa6727c80527dcff5b1f3cb" | 173 | SRCREV_pn-tidy ??= "e25416e1293e1074bfa6727c80527dcff5b1f3cb" |
172 | SRCREV_pn-u-boot-omap3 ??= "f40f6db278f602b55820693634a7256b0b4e4b80" | 174 | SRCREV_pn-u-boot-omap3 ??= "f40f6db278f602b55820693634a7256b0b4e4b80" |
173 | SRCREV_pn-ubootchart ??= "10" | 175 | SRCREV_pn-ubootchart ??= "10" |
diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_git.bb b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb new file mode 100644 index 0000000000..ddf7c1ef73 --- /dev/null +++ b/meta/recipes-kernel/trace-cmd/kernelshark_git.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "Graphical trace viewer for Ftrace" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ | ||
4 | file://kernel-shark.c;beginline=6;endline=8;md5=2c22c965a649ddd7973d7913c5634a5e" | ||
5 | |||
6 | PR = r0 | ||
7 | PV = "1.0.4+git${SRCPV}" | ||
8 | |||
9 | DEPENDS = "gtk+" | ||
10 | RDEPENDS_${PN} = "trace-cmd" | ||
11 | |||
12 | inherit pkgconfig | ||
13 | |||
14 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git;protocol=git" | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | EXTRA_OEMAKE = "'CC=${CC}' 'AR=${AR}' 'prefix=${prefix}' gui" | ||
18 | |||
19 | do_install() { | ||
20 | oe_runmake CC="${CC}" AR="${AR}" prefix="${prefix}" DESTDIR="${D}" install_gui | ||
21 | } | ||