summaryrefslogtreecommitdiff
path: root/package/perf/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:11:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:14:39 +0100
commit3b7e950a2a226d1344e78da8fb10e3cdb92f37a0 (patch)
tree2bda2f5203b3833e77529fe96884d56e69c8fca3 /package/perf/Makefile
parent23cfddf360edbac12473a5c6f9e2d85b12992bb3 (diff)
cleanup phil's submissions
- use () instead of {} in make variables for now - use PKG_HASH instead of PKG_MD5SUM - update to latest upstream versions - use a newline between PKG_* variables and DISTFILES - use <pkgname>-install instead of post-install - use lowercase description texts only - fix some missing PKG_BUILDDEP - elfutils needs argp, which is not available in uClibc-ng, yet - PKG_HASH is not required for git sources
Diffstat (limited to 'package/perf/Makefile')
-rw-r--r--package/perf/Makefile30
1 files changed, 18 insertions, 12 deletions
diff --git a/package/perf/Makefile b/package/perf/Makefile
index a237dd49b..75bd8efe4 100644
--- a/package/perf/Makefile
+++ b/package/perf/Makefile
@@ -5,33 +5,39 @@ include $(ADK_TOPDIR)/rules.mk
include $(ADK_TOPDIR)/mk/kernel-ver.mk
PKG_NAME:= perf
-PKG_VERSION:= ${KERNEL_VERSION}
+PKG_VERSION:= $(KERNEL_VERSION)
PKG_RELEASE:= 1
-PKG_DESCR:= Userland tools for Linux Performance Counters
+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
+include $(ADK_TOPDIR)/mk/kernel-vars.mk
-$(eval $(call PKG_template,PERF,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(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
+ $(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
+ $(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
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk