diff options
author | Liang Li <liang.li@windriver.com> | 2012-06-20 10:31:40 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-21 13:03:04 +0100 |
commit | 6b9c19140cd3c75c9862b22febb17af59930d865 (patch) | |
tree | fa38a45709816f94726c78621998642ad7180d66 /meta/recipes-kernel/perf | |
parent | a5b568eb372ac155718a8700da5e7b3e2ae6e9ce (diff) | |
download | poky-6b9c19140cd3c75c9862b22febb17af59930d865.tar.gz |
recipes-kernel: make perf a standalone package
perf has been coupled to the kernel packages via kernel.bbclass.
While maintaining the build of perf out of the kernel source tree
is desired the package coupling has proved to be awkward in
several situations such as:
- when a kernel recipe doesn't want to build/provide perf
- when licensing of dependencies would prohibit perf and hence
the kernel from being built.
To solve some of these problems, this recipe is the extraction of
the linux-tools.inc provided perf compilation into a standalone
perf recipe that builds out of the kernel source, but is otherwise
independent.
No new functionality is provided above what the linux-tools.inc
variant provided, but the separate recipe provides baseline for
adding new functionality.
(From OE-Core rev: ab883d0c1a05bd99e97e5d71bc7bed05cb1ae8c8)
Signed-off-by: Liang Li <liang.li@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/perf')
-rw-r--r-- | meta/recipes-kernel/perf/perf_3.4.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf_3.4.bb b/meta/recipes-kernel/perf/perf_3.4.bb new file mode 100644 index 0000000000..997beb4aef --- /dev/null +++ b/meta/recipes-kernel/perf/perf_3.4.bb | |||
@@ -0,0 +1,50 @@ | |||
1 | SUMMARY = "Performance analysis tools for Linux" | ||
2 | DESCRIPTION = "Performance counters for Linux are a new kernel-based \ | ||
3 | subsystem that provide a framework for all things \ | ||
4 | performance analysis. It covers hardware level \ | ||
5 | (CPU/PMU, Performance Monitoring Unit) features \ | ||
6 | and software features (software counters, tracepoints) \ | ||
7 | as well." | ||
8 | |||
9 | LICENSE = "GPLv2" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
11 | |||
12 | PR = "r0" | ||
13 | |||
14 | BUILDPERF_libc-uclibc = "no" | ||
15 | |||
16 | DEPENDS = "virtual/kernel \ | ||
17 | virtual/${MLPREFIX}libc \ | ||
18 | ${MLPREFIX}elfutils \ | ||
19 | ${MLPREFIX}binutils \ | ||
20 | " | ||
21 | RDEPENDS_${PN} += "elfutils perl python" | ||
22 | |||
23 | PROVIDES = "virtual/perf" | ||
24 | |||
25 | inherit kernel-arch | ||
26 | |||
27 | S = "${STAGING_KERNEL_DIR}" | ||
28 | B = "${WORKDIR}/${BPN}-${PV}" | ||
29 | |||
30 | EXTRA_OEMAKE = \ | ||
31 | '-C ${S}/tools/perf \ | ||
32 | O=${B} \ | ||
33 | CROSS_COMPILE=${TARGET_PREFIX} \ | ||
34 | ARCH=${ARCH} \ | ||
35 | CC="${CC}" \ | ||
36 | AR="${AR}" \ | ||
37 | prefix=/usr \ | ||
38 | NO_GTK2=1 NO_NEWT=1 NO_DWARF=1 \ | ||
39 | ' | ||
40 | |||
41 | do_compile() { | ||
42 | oe_runmake all | ||
43 | } | ||
44 | |||
45 | do_install() { | ||
46 | oe_runmake DESTDIR=${D} install | ||
47 | } | ||
48 | |||
49 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
50 | |||