Priyansh Jain 2ce0a1d262
thermald: backport support for non-Intel platforms
Backport three upstream patches that refactor thermald to support
non-Intel architectures, including ARM platforms. These commits were
merged upstream after the 2.5.11 release and are required to enable
correct thermal management on non-x86 SoCs.

Also update COMPATIBLE_HOST to allow building thermald on both Intel
and ARM hosts.

Upstream patches:
 - Backport from commit 4cf42fc89ccdbcecdcd30b32a7ca8040be55c253
 - Backport from commit 857fbdf3e9079cec04bfa5fe7a93a432485b5cab
 - Backport from commit 1931a12e7e44b6b85a02a5d8158829eff4b9cc92

Signed-off-by: Priyansh Jain <priyansh.jain@oss.qualcomm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-17 13:25:23 -07:00

48 lines
1.6 KiB
BlitzBasic

SUMMARY = "Linux thermal daemon"
DESCRIPTION = "Thermal Daemon is a Linux daemon used to prevent the \
overheating of platforms. This daemon monitors temperature and applies \
compensation using available cooling methods."
HOMEPAGE = "https://github.com/intel/thermal_daemon"
DEPENDS = "dbus dbus-glib dbus-glib-native libxml2 glib-2.0 glib-2.0-native upower libevdev"
DEPENDS += "autoconf-archive-native"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=ea8831610e926e2e469075b52bf08848"
SRC_URI = "git://github.com/intel/thermal_daemon/;branch=master;protocol=https \
file://0001-Refactor-Intel-specific-logic-into-separate-files.patch \
file://0002-Invoke-parser_init-before-platform_match.patch \
file://0003-Add-ARM-backend-and-enable-ARM-platform-detection.patch \
"
SRCREV = "5269afcf3e021e4e1b672b4640a0358f4ae5821b"
inherit pkgconfig autotools systemd gtk-doc
# gtkdocsize runs before autotools do_configure and it copies gtk-doc.m4 and fails
# to copy becuase there is no m4 dir yet.
do_configure:prepend () {
mkdir -p ${S}/m4
}
EXTRA_OECONF = " \
--with-systemdsystemunitdir=${systemd_system_unitdir} \
"
FILES:${PN} += "${datadir}/dbus-1"
SYSTEMD_SERVICE:${PN} = "thermald.service"
COMPATIBLE_HOST = '(i.86|x86_64|aarch64|arm).*-linux'
CONFFILES:${PN} = " \
${sysconfdir}/thermald/thermal-conf.xml \
${sysconfdir}/thermald/thermal-cpu-cdev-order.xml \
"
UPSTREAM_CHECK_URI = "https://github.com/intel/thermal_daemon/releases/"
UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>(?!2\.15\.10$)\d+(\.\d+)+)"