2023-06-22 14:16:03 +08:00
|
|
|
from building import *
|
|
|
|
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
src = ['device.c']
|
|
|
|
CPPPATH = [cwd + '/../include']
|
|
|
|
|
2023-07-13 14:49:35 +08:00
|
|
|
if GetDepend(['RT_USING_DEV_BUS']) or GetDepend(['RT_USING_DM']):
|
2023-06-22 14:16:03 +08:00
|
|
|
src = src + ['bus.c']
|
|
|
|
|
|
|
|
if GetDepend(['RT_USING_DM']):
|
2024-05-30 15:30:40 +08:00
|
|
|
src = src + ['dm.c', 'driver.c', 'numa.c', 'platform.c', 'power_domain.c']
|
2023-07-13 14:49:35 +08:00
|
|
|
|
[Feature] DFS mount auto by kernel parameters (#8989)
DFS mount auto by kernel parameters
1.Mount the rootfs options by parameters:
- root=: root device, like vda1, sda1, sd0p1, nvme0n0p1...
- rootfstype=: root file system type, like elm, ext, crom...
- rw/ro: root is readonly or all enable, if not have 'rw' flag,
the 'ro' flag is default.
- rootwait: always wait for root device status is OK.
- rootdelay=: mount rootfs delay amount of time (millisecond).
2.Mount the other fs options by `fstab.sh`, it will read the script
after root mount is OK, it's format is a list of mount cmds in MSH:
mount vda2 /mnt elm
mount 192.168.1.1:/ /mnt/remote nfs
Signed-off-by: GuEe-GUI <2991707448@qq.com>
2024-05-28 00:26:57 +08:00
|
|
|
if GetDepend(['RT_USING_DFS']):
|
|
|
|
src += ['mnt.c'];
|
|
|
|
|
2023-07-13 14:49:35 +08:00
|
|
|
if GetDepend(['RT_USING_OFW']):
|
|
|
|
src += ['platform_ofw.c']
|
2023-06-22 14:16:03 +08:00
|
|
|
|
|
|
|
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_DEVICE'], CPPPATH = CPPPATH)
|
|
|
|
|
|
|
|
Return('group')
|