From 2f5e4ac27e90928183128ac0053044e67b931d8b Mon Sep 17 00:00:00 2001 From: ErikChanHub <33407169+ErikChanHub@users.noreply.github.com> Date: Thu, 13 Jul 2023 14:49:35 +0800 Subject: 【dd2.0】Support the Core API for dd2.0 (#7791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/core/SConscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'components/drivers/core/SConscript') 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) -- cgit v1.3.1