Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=perf
  10. PKG_RELEASE:=1
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/perf
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. DEPENDS:= +libdw +libelf +libpthread +librt @BROKEN
  16. TITLE:=Linux performance monitoring tool
  17. VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
  18. URL:=http://www.kernel.org
  19. endef
  20. define Package/perf/description
  21. perf is the Linux performance monitoring tool
  22. endef
  23. define Build/Prepare
  24. endef
  25. define Build/Compile
  26. $(MAKE) -C $(LINUX_DIR)/tools/perf \
  27. ARCH="$(LINUX_KARCH)" \
  28. NO_LIBPERL=1 \
  29. NO_LIBPYTHON=1 \
  30. NO_NEWT=1 \
  31. CROSS_COMPILE="$(TARGET_CROSS)" \
  32. CC="$(TARGET_CC)" \
  33. LD="$(TARGET_CROSS)ld" \
  34. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  35. LDFLAGS="$(TARGET_LDFLAGS)" \
  36. V=1 \
  37. prefix=/usr
  38. endef
  39. define Package/perf/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(LINUX_DIR)/tools/perf/perf $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,perf))