diff options
| author | ErikChanHub <[email protected]> | 2023-07-13 14:49:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-13 14:49:35 +0800 |
| commit | 2f5e4ac27e90928183128ac0053044e67b931d8b (patch) | |
| tree | efd8159a4e990e8898599d5f7c44b644851c635d /components/drivers/core/SConscript | |
| parent | 259431ace39221e57ab1861c1eae860dab3b032b (diff) | |
【dd2.0】Support the Core API for dd2.0 (#7791)
Diffstat (limited to 'components/drivers/core/SConscript')
| -rw-r--r-- | components/drivers/core/SConscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/components/drivers/core/SConscript b/components/drivers/core/SConscript index 717af9ae78..0f345fbea7 100644 --- a/components/drivers/core/SConscript +++ b/components/drivers/core/SConscript @@ -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) |
