1 include $(TOPDIR
)/rules.mk
2 include $(INCLUDE_DIR
)/kernel.mk
5 PKG_VERSION
:=$(LINUX_VERSION
)
8 PKG_MAINTAINER
:=Florian Eckert
<fe@dev.tdt.de
>
9 PKG_LICENSE
:=GPL-2.0
-only
11 include $(INCLUDE_DIR
)/package.mk
16 TITLE
:=Thermal monitoring and testing tool
17 VERSION
:=$(LINUX_VERSION
)-$(PKG_RELEASE
)
18 URL
:=http
://www.kernel.org
22 define Package
/tmon
/description
23 As hardware vendors cope with the thermal constraints on their products
,
24 more and more sensors are added
, new cooling capabilities are introduced.
25 To expose such relationship to the userspace
, Linux generic thermal layer
26 introduced sysfs entry at
/sys
/class
/thermal with a matrix of symbolic
27 links
, trip point bindings
, and device instances. To traverse such
28 matrix by hand is not a trivial task.
29 'TMON' is conceived
as a tool to help visualize
, tune
, and
test the
30 complex thermal subsystem.
34 ARCH
="$(LINUX_KARCH)" \
35 CROSS_COMPILE
="$(TARGET_CROSS)" \
37 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
38 LDFLAGS
="$(TARGET_LDFLAGS)"
42 -C
$(LINUX_DIR
)/tools
/thermal
/tmon
43 +$(MAKE_FLAGS
) $(MAKE
) \
44 -C
$(LINUX_DIR
)/tools
/thermal
/tmon
47 define Package
/tmon
/install
48 $(INSTALL_DIR
) $(1)/usr
/bin
49 $(INSTALL_BIN
) $(LINUX_DIR
)/tools
/thermal
/tmon
/tmon \
53 $(eval
$(call BuildPackage
,tmon
))