[package] add perf
[openwrt.git] / package / perf / Makefile
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=perf
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/perf
17 SECTION:=utils
18 CATEGORY:=Utilities
19 DEPENDS:= +libdw +libelf +libpthread +librt
20 TITLE:=Linux performance monitoring tool
21 VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
22 URL:=http://www.kernel.org
23 endef
24
25 define Package/perf/description
26 perf is the Linux performance monitoring tool
27 endef
28
29 define Build/Prepare
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(LINUX_DIR)/tools/perf \
34 ARCH="$(LINUX_KARCH)" \
35 NO_LIBPERL=1 \
36 NO_LIBPYTHON=1 \
37 NO_NEWT=1 \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 CC="$(TARGET_CC)" \
40 LD="$(TARGET_CROSS)ld" \
41 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
42 LDFLAGS="$(TARGET_LDFLAGS)" \
43 V=1 \
44 prefix=/usr
45 endef
46
47 define Package/perf/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(LINUX_DIR)/tools/perf/perf $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,perf))
This page took 0.048619 seconds and 5 git commands to generate.