add perf recipe
[openpandora.oe.git] / recipes / linux / perf_3.2.bb
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 MLPREFIX = ""
17
18 DEPENDS = "virtual/kernel \
19            virtual/${MLPREFIX}libc \
20            ${MLPREFIX}elfutils \
21            ${MLPREFIX}binutils \
22           "
23 RDEPENDS_${PN} += "elfutils perl python"
24
25 PROVIDES = "virtual/perf"
26
27 SRCREV = "52ea40e670c7ec5b6a523ed9dab180df3801f757"
28
29 SRC_URI = " \
30   git://git.openpandora.org/pandora-kernel.git;protocol=git;branch=pandora-3.2 \
31 "
32
33 S = "${WORKDIR}/git"
34
35 B = "${WORKDIR}/${BPN}-${PV}"
36
37 EXTRA_OEMAKE = \
38                 '-C ${S}/tools/perf \
39                 O=${B} \
40                 CROSS_COMPILE=${TARGET_PREFIX} \
41                 ARCH=${ARCH} \
42                 CC="${CC}" \
43                 AR="${AR}" \
44                 prefix=/usr \
45                 NO_GTK2=1 NO_NEWT=1 NO_DWARF=1 \
46                 '
47
48 do_compile() {
49         oe_runmake all
50 }
51
52 do_install() {
53         oe_runmake DESTDIR=${D} install
54 }
55
56 PACKAGE_ARCH = "${MACHINE_ARCH}"
57