summaryrefslogtreecommitdiff
path: root/components/drivers/thermal/SConscript
blob: f3db0cf68f1d56cfdf41f77ba370a88d67e18e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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_GPIO_FAN']):
    src += ['thermal-cool-gpio-fan.c']

if GetDepend(['RT_THERMAL_COOL_PWM_FAN']):
    src += ['thermal-cool-pwm-fan.c']

group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')