summaryrefslogtreecommitdiff
path: root/components/drivers/core/SConscript
diff options
context:
space:
mode:
authorGUI <[email protected]>2024-05-28 00:26:57 +0800
committerGitHub <[email protected]>2024-05-28 00:26:57 +0800
commit754c59a41185fadd543ae2eaee518ebcbe68af5b (patch)
treef4d16694d1bdf197b907143afe4493c2a384e758 /components/drivers/core/SConscript
parentae6a3287e6ab4121c07b1e0624b44d0e4477e14f (diff)
[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 <[email protected]>
Diffstat (limited to 'components/drivers/core/SConscript')
-rw-r--r--components/drivers/core/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/core/SConscript b/components/drivers/core/SConscript
index 0f345fbea7..99b39436b2 100644
--- a/components/drivers/core/SConscript
+++ b/components/drivers/core/SConscript
@@ -10,6 +10,9 @@ if GetDepend(['RT_USING_DEV_BUS']) or GetDepend(['RT_USING_DM']):
if GetDepend(['RT_USING_DM']):
src = src + ['dm.c', 'driver.c', 'platform.c']
+ if GetDepend(['RT_USING_DFS']):
+ src += ['mnt.c'];
+
if GetDepend(['RT_USING_OFW']):
src += ['platform_ofw.c']