arm/qemu: Add mounting of tmpfs

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-09-18 12:20:30 +08:00 committed by Xiang Xiao
parent cafd563da1
commit 0916461f8b

View File

@ -117,6 +117,17 @@ int qemu_bringup(void)
{
int ret;
#ifdef CONFIG_FS_TMPFS
/* Mount the tmpfs file system */
ret = nx_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_FS_PROCFS
/* Mount the procfs file system */