qemu_bringup: add tmppfs mount for qemu-armv8a

tmpfs can be used for the rpmsgfs test after the qemu rptun driver
added.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2023-10-07 19:31:32 +08:00 committed by Xiang Xiao
parent 409431b2ad
commit ce16288494

View File

@ -198,6 +198,16 @@ int qemu_bringup(void)
{
int ret;
#ifdef CONFIG_FS_TMPFS
/* Mount the tmp file system */
ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at /tmp: %d\n", ret);
}
#endif
#ifdef CONFIG_FS_PROCFS
/* Mount the procfs file system */