diff options
| author | Liwei Song <liwei.song@windriver.com> | 2026-01-21 13:18:29 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-01-21 15:29:20 -0800 |
| commit | 461e5620bcd6a2349477d32dd3854e4e62c0adfd (patch) | |
| tree | a750f61dc9c1d05cad37cbf7e03bdfe4055899d9 /meta-oe | |
| parent | def8784b1d4c9ae6275de0b49f4154cc5756095d (diff) | |
| download | meta-openembedded-461e5620bcd6a2349477d32dd3854e4e62c0adfd.tar.gz | |
tmon: add a new recipe to generate tmon
tmon is a monitoring and testing tool for Linux kernel thermal
subsystem, it help visualize, tune, and test this complex system.
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-kernel/tmon/tmon.bb | 40 |
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 @@ | |||
| 1 | SUMMARY = "A Monitoring and Testing Tool for Linux kernel thermal subsystem" | ||
| 2 | DESCRIPTION = "TMON is conceived as a tool to help visualize, tune, and \ | ||
| 3 | test the complex thermal subsystem" | ||
| 4 | |||
| 5 | LICENSE = "GPL-2.0-only" | ||
| 6 | |||
| 7 | DEPENDS = "virtual/kernel ncurses" | ||
| 8 | |||
| 9 | do_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 | # | ||
| 14 | do_populate_lic[depends] += "${PN}:do_configure" | ||
| 15 | |||
| 16 | |||
| 17 | EXTRA_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 | # | ||
| 26 | do_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 | |||
| 34 | do_compile() { | ||
| 35 | oe_runmake STAGING_KERNEL_DIR=${STAGING_KERNEL_DIR} | ||
| 36 | } | ||
| 37 | |||
| 38 | do_install() { | ||
| 39 | oe_runmake INSTALL_ROOT="${D}" install | ||
| 40 | } | ||
