summaryrefslogtreecommitdiff
path: root/components/drivers/thermal/SConscript
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-11-27 13:30:12 +0800
committerRbb666 <[email protected]>2024-12-02 21:17:24 +0800
commit429c0c52570491a87fc4b3050d7d88f85a616a10 (patch)
tree0e740b704fb5e02ef60bb87b47c772422901b6b3 /components/drivers/thermal/SConscript
parent8c0a6c934bd9e6db66f0fb15be2bc69563647f9d (diff)
[DM/FEATURE] Support thermal
Thermal drivers offer a generic mechanism for thermal management. Usually it's made up of one or more thermal zones and cooling devices. Each thermal zone contains its own temperature, trip points, and cooling devices. All platforms with ACPI or OFW thermal support can use this driver. Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components/drivers/thermal/SConscript')
-rw-r--r--components/drivers/thermal/SConscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/drivers/thermal/SConscript b/components/drivers/thermal/SConscript
new file mode 100644
index 0000000000..ef7ea04398
--- /dev/null
+++ b/components/drivers/thermal/SConscript
@@ -0,0 +1,15 @@
+from building import *
+
+group = []
+
+if not GetDepend(['RT_USING_THERMAL']):
+ Return('group')
+
+cwd = GetCurrentDir()
+CPPPATH = [cwd + '/../include']
+
+src = ['thermal.c', 'thermal_dm.c']
+
+group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')