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:
parent
de45c3f607
commit
e0307fcd8f
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue