From 754c59a41185fadd543ae2eaee518ebcbe68af5b Mon Sep 17 00:00:00 2001 From: GUI <39894654+GuEe-GUI@users.noreply.github.com> Date: Tue, 28 May 2024 00:26:57 +0800 Subject: [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> --- components/drivers/core/SConscript | 3 +++ 1 file changed, 3 insertions(+) (limited to 'components/drivers/core/SConscript') 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'] -- cgit v1.3.1