mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
【dd2.0】Support the Core API for dd2.0 (#7791)
This commit is contained in:
@@ -4,11 +4,14 @@ cwd = GetCurrentDir()
|
||||
src = ['device.c']
|
||||
CPPPATH = [cwd + '/../include']
|
||||
|
||||
if GetDepend(['RT_USING_DEV_BUS']):
|
||||
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']
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user