configs/imxrt1050-evk: Add procfs auto-mount support in imxrt_bringup.c.

This commit is contained in:
Ivan Ucherdzhiev 2018-04-24 07:04:21 -06:00 committed by Gregory Nutt
parent 3012abdc45
commit d24ce35e1c

View File

@ -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;
}