summaryrefslogtreecommitdiff
path: root/components/drivers/core/SConscript
blob: 717af9ae787ea8578a842329721c1ace4b3a9171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from building import *

cwd = GetCurrentDir()
src = ['device.c']
CPPPATH = [cwd + '/../include']

if GetDepend(['RT_USING_DEV_BUS']):
    src = src + ['bus.c']

if GetDepend(['RT_USING_DM']):
    src = src + ['dm.c', 'driver.c']

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

Return('group')