mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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:
@@ -118,6 +118,17 @@ int sim_bringup(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#ifdef CONFIG_LIB_ZONEINFO_ROMFS
|
||||||
/* Mount the TZ database */
|
/* Mount the TZ database */
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -112,7 +112,7 @@ config ROUTE_MAX_IPv6_RAMROUTES
|
|||||||
|
|
||||||
config ROUTE_FILEDIR
|
config ROUTE_FILEDIR
|
||||||
string "Routing table directory"
|
string "Routing table directory"
|
||||||
default /tmp
|
default LIBC_TMPDIR
|
||||||
depends on ROUTE_IPv4_FILEROUTE || ROUTE_IPv6_FILEROUTE
|
depends on ROUTE_IPv4_FILEROUTE || ROUTE_IPv6_FILEROUTE
|
||||||
---help---
|
---help---
|
||||||
Provides the full path to location in the file system where routing
|
Provides the full path to location in the file system where routing
|
||||||
|
|||||||
Reference in New Issue
Block a user