2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
14 include $(INCLUDE_DIR)/package.mk
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
25 define Package/perf/description
26 perf is the Linux performance monitoring tool
33 $(MAKE) -C $(LINUX_DIR)/tools/perf \
34 ARCH="$(LINUX_KARCH)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
40 LD="$(TARGET_CROSS)ld" \
41 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
42 LDFLAGS="$(TARGET_LDFLAGS)" \
47 define Package/perf/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(LINUX_DIR)/tools/perf/perf $(1)/usr/bin/
52 $(eval $(call BuildPackage,perf))