2023-06-22 14:16:03 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = ['device.c']
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
|
2023-07-13 14:49:35 +08:00
|
|
|
if GetDepend(['RT_USING_DEV_BUS']) or GetDepend(['RT_USING_DM']):
|
2023-06-22 14:16:03 +08:00
|
|
|
src = src + ['bus.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_DM']):
|
2023-07-13 14:49:35 +08:00
|
|
|
src = src + ['dm.c', 'driver.c', 'platform.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_OFW']):
|
|
|
|
src += ['platform_ofw.c']
|
2023-06-22 14:16:03 +08:00
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|