mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
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);
|
||||
|
||||
Reference in New Issue
Block a user