add perf recipe
authorGrazvydas Ignotas <notasas@gmail.com>
Wed, 8 Jul 2015 23:34:39 +0000 (02:34 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 8 Jul 2015 23:34:50 +0000 (02:34 +0300)
based on newer OE

recipes/linux/perf_3.2.bb [new file with mode: 0644]

diff --git a/recipes/linux/perf_3.2.bb b/recipes/linux/perf_3.2.bb
new file mode 100644 (file)
index 0000000..1756ba2
--- /dev/null
@@ -0,0 +1,57 @@
+SUMMARY = "Performance analysis tools for Linux"
+DESCRIPTION = "Performance counters for Linux are a new kernel-based \
+subsystem that provide a framework for all things \
+performance analysis. It covers hardware level \
+(CPU/PMU, Performance Monitoring Unit) features \
+and software features (software counters, tracepoints) \
+as well."
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+PR = "r0"
+
+BUILDPERF_libc-uclibc = "no"
+
+MLPREFIX = ""
+
+DEPENDS = "virtual/kernel \
+           virtual/${MLPREFIX}libc \
+           ${MLPREFIX}elfutils \
+           ${MLPREFIX}binutils \
+          "
+RDEPENDS_${PN} += "elfutils perl python"
+
+PROVIDES = "virtual/perf"
+
+SRCREV = "52ea40e670c7ec5b6a523ed9dab180df3801f757"
+
+SRC_URI = " \
+  git://git.openpandora.org/pandora-kernel.git;protocol=git;branch=pandora-3.2 \
+"
+
+S = "${WORKDIR}/git"
+
+B = "${WORKDIR}/${BPN}-${PV}"
+
+EXTRA_OEMAKE = \
+               '-C ${S}/tools/perf \
+               O=${B} \
+               CROSS_COMPILE=${TARGET_PREFIX} \
+               ARCH=${ARCH} \
+               CC="${CC}" \
+               AR="${AR}" \
+               prefix=/usr \
+               NO_GTK2=1 NO_NEWT=1 NO_DWARF=1 \
+               '
+
+do_compile() {
+       oe_runmake all
+}
+
+do_install() {
+       oe_runmake DESTDIR=${D} install
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+