blob: 5039b34f04306086fc4ad5d1144333d2abe10fae (
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
|
from building import *
group = []
if not GetDepend(['RT_USING_POWER_SUPPLY']):
Return('group')
cwd = GetCurrentDir()
CPPPATH = [cwd + '/../../include']
src = ['supply.c']
if GetDepend(['RT_POWER_SUPPLY_DAEMON']):
src += ['supply-daemon.c']
if GetDepend(['RT_POWER_SUPPLY_EMU']):
src += ['emu-power.c']
if GetDepend(['RT_POWER_SUPPLY_CHARGER_GPIO']):
src += ['gpio-charger.c']
group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')
|