Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=tmon
  4. PKG_VERSION:=$(LINUX_VERSION)
  5. PKG_RELEASE:=1
  6. PKG_MAINTAINER:=Florian Eckert <[email protected]>
  7. PKG_LICENSE:=GPL-2.0-only
  8. include $(INCLUDE_DIR)/package.mk
  9. define Package/tmon
  10. SECTION:=devel
  11. CATEGORY:=Development
  12. TITLE:=Thermal monitoring and testing tool
  13. URL:=http://www.kernel.org
  14. DEPENDS:=+libncursesw
  15. endef
  16. define Package/tmon/description
  17. As hardware vendors cope with the thermal constraints on their products,
  18. more and more sensors are added, new cooling capabilities are introduced.
  19. To expose such relationship to the userspace, Linux generic thermal layer
  20. introduced sysfs entry at /sys/class/thermal with a matrix of symbolic
  21. links, trip point bindings, and device instances. To traverse such
  22. matrix by hand is not a trivial task.
  23. 'TMON' is conceived as a tool to help visualize, tune, and test the
  24. complex thermal subsystem.
  25. endef
  26. MAKE_FLAGS = \
  27. ARCH="$(LINUX_KARCH)" \
  28. CROSS_COMPILE="$(TARGET_CROSS)" \
  29. CC="$(TARGET_CC)" \
  30. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
  31. LDFLAGS="$(TARGET_LDFLAGS)"
  32. define Build/Compile
  33. -$(MAKE) clean \
  34. -C $(LINUX_DIR)/tools/thermal/tmon
  35. +$(MAKE_FLAGS) $(MAKE) \
  36. -C $(LINUX_DIR)/tools/thermal/tmon
  37. endef
  38. define Package/tmon/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(LINUX_DIR)/tools/thermal/tmon/tmon \
  41. $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,tmon))