mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-08-22 09:48:44 +08:00
1. Support DVFS and finsh cmd, there are 6 governors: - conservative - freedom - performance - powersave - schedutil 2. Support DVFS for SCMI. 3. Port the Cooling device for DVFS. 4. Port the PM with DVFS. Signed-off-by: GuEe-GUI <2991707448@qq.com>
25 lines
506 B
Python
25 lines
506 B
Python
from building import *
|
|
|
|
group = []
|
|
|
|
if not GetDepend(['RT_USING_THERMAL']):
|
|
Return('group')
|
|
|
|
cwd = GetCurrentDir()
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
src = ['thermal.c', 'thermal_dm.c']
|
|
|
|
if GetDepend(['RT_THERMAL_SCMI']):
|
|
src += ['thermal-scmi.c']
|
|
|
|
if GetDepend(['RT_THERMAL_COOL_DVFS']):
|
|
src += ['thermal-cool-dvfs.c']
|
|
|
|
if GetDepend(['RT_THERMAL_COOL_PWM_FAN']):
|
|
src += ['thermal-cool-pwm-fan.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|