mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
configs/imxrt1050-evk: Add procfs auto-mount support in imxrt_bringup.c.
This commit is contained in:
committed by
Gregory Nutt
parent
3012abdc45
commit
d24ce35e1c
@@ -39,6 +39,10 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/mount.h>
|
||||
#include <sys/types.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include "imxrt1050-evk.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -70,6 +74,16 @@ int imxrt_bringup(void)
|
||||
* capabilities.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_FS_PROCFS
|
||||
/* Mount the procfs file system */
|
||||
|
||||
ret = mount(NULL, "/proc", "procfs", 0, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount procfs at /proc: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
UNUSED(ret);
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user