You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
445 B
18 lines
445 B
from building import *
|
|
|
|
cwd = GetCurrentDir()
|
|
src = ['device.c']
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
if GetDepend(['RT_USING_DEV_BUS']) or GetDepend(['RT_USING_DM']):
|
|
src = src + ['bus.c']
|
|
|
|
if GetDepend(['RT_USING_DM']):
|
|
src = src + ['dm.c', 'driver.c', 'platform.c']
|
|
|
|
if GetDepend(['RT_USING_OFW']):
|
|
src += ['platform_ofw.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
Return('group')
|
|
|