mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-08 08:32:46 +00:00
src/utest/device_tc.c is testing API: rt_device_find(), which is a function defined in components/drivers/core/device.c. So it should be a testcase for drivers core, not for core. Move it to under components/drivers/core. Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
27 lines
709 B
Python
27 lines
709 B
Python
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', 'numa.c', 'platform.c', 'power_domain.c']
|
|
|
|
if GetDepend(['RT_USING_DFS']):
|
|
src += ['mnt.c'];
|
|
|
|
if GetDepend(['RT_USING_OFW']):
|
|
src += ['platform_ofw.c']
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
list = os.listdir(cwd)
|
|
for item in list:
|
|
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
|
|
group = group + SConscript(os.path.join(item, 'SConscript'))
|
|
|
|
Return('group')
|