From a8e494633566cea8d86b1170868cbb4e83976b1a Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Thu, 9 Jul 2015 02:34:39 +0300 Subject: [PATCH] add perf recipe based on newer OE --- recipes/linux/perf_3.2.bb | 57 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 recipes/linux/perf_3.2.bb diff --git a/recipes/linux/perf_3.2.bb b/recipes/linux/perf_3.2.bb new file mode 100644 index 0000000..1756ba2 --- /dev/null +++ b/recipes/linux/perf_3.2.bb @@ -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}" + -- 2.39.5