Root/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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=perf
12PKG_RELEASE:=1
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/perf
17  SECTION:=utils
18  CATEGORY:=Utilities
19  DEPENDS:= +libdw +libelf1 +libpthread +librt @BROKEN
20  TITLE:=Linux performance monitoring tool
21  VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
22  URL:=http://www.kernel.org
23endef
24
25define Package/perf/description
26  perf is the Linux performance monitoring tool
27endef
28
29define Build/Prepare
30endef
31
32define 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
45endef
46
47define Package/perf/install
48    $(INSTALL_DIR) $(1)/usr/bin
49    $(INSTALL_BIN) $(LINUX_DIR)/tools/perf/perf $(1)/usr/bin/
50endef
51
52$(eval $(call BuildPackage,perf))
53

Archive Download this file



interactive