diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-03-01 13:19:12 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-03-01 13:19:12 +0100 |
commit | f2ea9e8dbd4cc3c77ff4cc52688d7057d3289fab (patch) | |
tree | 72ec81acffa69f2c89e52a38603a6f92fb1e72ae /package/perf/Makefile | |
parent | dce7d2df8c73896aeef77118fe89fc7e88d035fe (diff) | |
parent | 0943b7422376747a452bda5562c73d673cccbe68 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/perf/Makefile')
-rw-r--r-- | package/perf/Makefile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/perf/Makefile b/package/perf/Makefile new file mode 100644 index 000000000..75bd8efe4 --- /dev/null +++ b/package/perf/Makefile @@ -0,0 +1,43 @@ +# 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_BUILDDEP:= elfutils newt +PKG_URL:= https://perf.wiki.kernel.org/index.php/Main_Page + +# elfutils require argp() +PKG_LIBC_DEPENDS:= glibc + +NO_DISTFILES:= 1 + +include $(ADK_TOPDIR)/mk/package.mk +include $(ADK_TOPDIR)/mk/kernel-vars.mk + +$(eval $(call PKG_template,PERF,perf,$(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 + +perf-install: + $(INSTALL_DIR) $(IDIR_PERF)/usr/bin + $(INSTALL_BIN) $(WRKINST)/bin/perf $(IDIR_PERF)/usr/bin + +include $(ADK_TOPDIR)/mk/pkg-bottom.mk |