rv-virt: Guard procfs mount with CONFIG_FS_PROCFS

Don't mount procfs if it is not enabled in the kernel configuration.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2024-02-01 17:05:17 +08:00
committed by Alan Carvalho de Assis
parent dce459767e
commit bff298ae09
@@ -108,7 +108,9 @@ int board_app_initialize(uintptr_t arg)
#ifdef CONFIG_NSH_ARCHINIT
#ifdef CONFIG_FS_PROCFS
mount(NULL, "/proc", "procfs", 0, NULL);
#endif
#ifdef CONFIG_FS_TMPFS
mount(NULL, "/tmp", "tmpfs", 0, NULL);