blob: 29b567fad9459bfe242f400b826cd07adbdf672c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
from building import *
group = []
if not GetDepend(['RT_USING_REGULATOR']):
Return('group')
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../include']
src = ['regulator.c', 'regulator_dm.c']
if GetDepend(['RT_REGULATOR_FIXED']):
src += ['regulator-fixed.c']
if GetDepend(['RT_REGULATOR_GPIO']):
src += ['regulator-gpio.c']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|