2024-11-27 13:30:12 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
group = []
|
|
|
|
|
|
|
|
if not GetDepend(['RT_USING_THERMAL']):
|
|
|
|
Return('group')
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
|
|
|
|
src = ['thermal.c', 'thermal_dm.c']
|
|
|
|
|
2024-11-27 13:32:52 +08:00
|
|
|
if GetDepend(['RT_THERMAL_COOL_PWM_FAN']):
|
|
|
|
src += ['thermal-cool-pwm-fan.c']
|
|
|
|
|
2024-11-27 13:30:12 +08:00
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|