summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2015-02-24 12:47:10 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:14:34 +0100
commit5df5b5feea69a49f818ecb785401a3424af69a6a (patch)
tree04ed2d0745ab231e4aa8d194a006cba0376e8909 /package
parent0a4c30ca2728936c16a73e9a4ef7d12243ef4d55 (diff)
port perf utility shipped with kernel tree
Diffstat (limited to 'package')
-rw-r--r--package/perf/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/perf/Makefile b/package/perf/Makefile
new file mode 100644
index 000000000..a237dd49b
--- /dev/null
+++ b/package/perf/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+include $(ADK_TOPDIR)/mk/kernel-ver.mk
+
+PKG_NAME:= perf
+PKG_VERSION:= ${KERNEL_VERSION}
+PKG_RELEASE:= 1
+PKG_DESCR:= Userland tools for Linux Performance Counters
+PKG_SECTION:= app/debug
+PKG_DEPENDS:= elfutils newt
+PKG_URL:= https://perf.wiki.kernel.org/index.php/Main_Page
+
+NO_DISTFILES:= 1
+
+include $(ADK_TOPDIR)/mk/package.mk
+include ${ADK_TOPDIR}/mk/kernel-vars.mk
+
+$(eval $(call PKG_template,PERF,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+BUILD_STYLE:= manual
+INSTALL_STYLE:= manual
+
+do-build:
+ ${KERNEL_MAKE_ENV} GCC_HONOUR_COPTS=0 ${MAKE} \
+ ${KERNEL_MAKE_OPTS} WERROR=0 -C "${LINUX_DIR}/tools/perf" all
+
+do-install:
+ ${KERNEL_MAKE_ENV} GCC_HONOUR_COPTS=0 ${MAKE} \
+ ${KERNEL_MAKE_OPTS} WERROR=0 -C "${LINUX_DIR}/tools/perf" \
+ prefix="${WRKINST}" install
+ ${INSTALL_DIR} ${IDIR_PERF}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/bin/perf ${IDIR_PERF}/usr/bin
+
+include ${ADK_TOPDIR}/mk/pkg-bottom.mk