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
8 PKG_VERSION
:= $(KERNEL_VERSION
)
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
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
)))
28 INSTALL_STYLE
:= manual
31 $(KERNEL_MAKE_ENV
) GCC_HONOUR_COPTS
=0 $(MAKE
) -C
"${LINUX_DIR}" \
32 $(KERNEL_MAKE_OPTS
) WERROR
=0 -C
"$(LINUX_DIR)/tools/perf" all
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
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