summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-kernel/tmon/tmon.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/tmon/tmon.bb b/meta-oe/recipes-kernel/tmon/tmon.bb
new file mode 100644
index 0000000000..4911f445c5
--- /dev/null
+++ b/meta-oe/recipes-kernel/tmon/tmon.bb
@@ -0,0 +1,40 @@
1SUMMARY = "A Monitoring and Testing Tool for Linux kernel thermal subsystem"
2DESCRIPTION = "TMON is conceived as a tool to help visualize, tune, and \
3test the complex thermal subsystem"
4
5LICENSE = "GPL-2.0-only"
6
7DEPENDS = "virtual/kernel ncurses"
8
9do_configure[depends] += "virtual/kernel:do_shared_workdir"
10
11# This looks in S, so we better make sure there's
12# something in the directory.
13#
14do_populate_lic[depends] += "${PN}:do_configure"
15
16
17EXTRA_OEMAKE = '\
18 CC="${CC}" \
19 -I${STAGING_KERNEL_DIR}/tools/thermal/tmon \
20'
21
22# If we build under STAGING_KERNEL_DIR, source will not be put
23# into the dbg rpm. STAGING_KERNEL_DIR will exist by the time
24# do_configure() is invoked so we can safely copy from it.
25#
26do_configure:prepend() {
27 mkdir -p ${S}
28 cp -r ${STAGING_KERNEL_DIR}/tools/thermal/tmon/* ${S}
29 # Fix compile error when pkg-config is on the dependency chain:
30 # tmon.h:42:17: error: field 'tv' has incomplete type
31 sed -i '/PKG_CONFIG.*--cflags.*ncurses/d' ${S}/Makefile
32}
33
34do_compile() {
35 oe_runmake STAGING_KERNEL_DIR=${STAGING_KERNEL_DIR}
36}
37
38do_install() {
39 oe_runmake INSTALL_ROOT="${D}" install
40}