or1k: rename or1k-sim to sim-or1k, by default 64mb ram
[openadk.git] / package / perf / Makefile
bloba36d9bae8e7d033df6fda994297749587b5b0ba1
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
5 include $(ADK_TOPDIR)/mk/kernel-ver.mk
7 PKG_NAME:= perf
8 PKG_VERSION:= $(KERNEL_VERSION)
9 PKG_RELEASE:= 1
10 PKG_DESCR:= userland tools for linux performance counters
11 PKG_SECTION:= app/debug
12 PKG_DEPENDS:= elfutils newt
13 PKG_BUILDDEP:= elfutils newt
14 PKG_URL:= https://perf.wiki.kernel.org/index.php/Main_Page
16 # elfutils require argp()
17 PKG_LIBC_DEPENDS:= glibc
19 NO_DISTFILES:= 1
21 include $(ADK_TOPDIR)/mk/package.mk
22 include $(ADK_TOPDIR)/mk/kernel-vars.mk
24 $(eval $(call PKG_template,PERF,perf,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
26 CONFIG_STYLE:= manual
27 BUILD_STYLE:= manual
28 INSTALL_STYLE:= manual
30 do-build:
31 $(KERNEL_MAKE_ENV) GCC_HONOUR_COPTS=0 $(MAKE) -C "${LINUX_DIR}" \
32 $(KERNEL_MAKE_OPTS) WERROR=0 -C "$(LINUX_DIR)/tools/perf" all
34 do-install:
35 $(KERNEL_MAKE_ENV) GCC_HONOUR_COPTS=0 $(MAKE) -C "${LINUX_DIR}" \
36 $(KERNEL_MAKE_OPTS) WERROR=0 -C "$(LINUX_DIR)/tools/perf" \
37 prefix="$(WRKINST)" install
39 perf-install:
40 $(INSTALL_DIR) $(IDIR_PERF)/usr/bin
41 $(INSTALL_BIN) $(WRKINST)/bin/perf $(IDIR_PERF)/usr/bin
43 include $(ADK_TOPDIR)/mk/pkg-bottom.mk