1from building import * 2 3group = [] 4 5if not GetDepend(['RT_USING_THERMAL']): 6 Return('group') 7 8cwd = GetCurrentDir() 9CPPPATH = [cwd + '/../include'] 10 11src = ['thermal.c', 'thermal_dm.c'] 12 13if GetDepend(['RT_THERMAL_COOL_PWM_FAN']): 14 src += ['thermal-cool-pwm-fan.c'] 15 16group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH) 17 18Return('group') 19