mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 18:23:32 +08:00
e7cddf3a52
* [Feature] Power domain for device 1.Support device power on/off. 2.Support attach/detach device. 3.Support power domain driver api. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [DM/platform] Enhanced platform bus 1.Add power domain for device. 2.Support `remove` and `shutdown` bus interface. Signed-off-by: GuEe-GUI <2991707448@qq.com> --------- Signed-off-by: GuEe-GUI <2991707448@qq.com>
22 lines
536 B
Python
22 lines
536 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)
|
|
|
|
Return('group')
|