From: Grazvydas Ignotas Date: Wed, 8 Jul 2015 23:34:39 +0000 (+0300) Subject: add perf recipe X-Git-Tag: sz_172rc~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8e494633566cea8d86b1170868cbb4e83976b1a;p=openpandora.oe.git add perf recipe based on newer OE --- 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}" +