boards/sim/sim/sim/src/sim_bringup.c: Mount tmpfs to CONFIG_LIBC_TMPDIR in sim_bringup if CONFIG_FS_TMPFS is defined.

This commit is contained in:
Xiang Xiao 2019-11-23 07:58:50 -06:00 committed by Gregory Nutt
parent de45c3f607
commit e0307fcd8f
2 changed files with 12 additions and 1 deletions

View File

@ -118,6 +118,17 @@ int sim_bringup(void)
}
#endif
#ifdef CONFIG_FS_TMPFS
/* Mount the tmpfs file system */
ret = mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at %s: %d\n",
CONFIG_LIBC_TMPDIR, ret);
}
#endif
#ifdef CONFIG_LIB_ZONEINFO_ROMFS
/* Mount the TZ database */

View File

@ -112,7 +112,7 @@ config ROUTE_MAX_IPv6_RAMROUTES
config ROUTE_FILEDIR
string "Routing table directory"
default /tmp
default LIBC_TMPDIR
depends on ROUTE_IPv4_FILEROUTE || ROUTE_IPv6_FILEROUTE
---help---
Provides the full path to location in the file system where routing