From ce16288494f8a8ead0fac190b63977c686694f48 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Sat, 7 Oct 2023 19:31:32 +0800 Subject: [PATCH] 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 --- boards/arm64/qemu/qemu-armv8a/src/qemu_bringup.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/boards/arm64/qemu/qemu-armv8a/src/qemu_bringup.c b/boards/arm64/qemu/qemu-armv8a/src/qemu_bringup.c index bf1b5c0543..6852ff237f 100644 --- a/boards/arm64/qemu/qemu-armv8a/src/qemu_bringup.c +++ b/boards/arm64/qemu/qemu-armv8a/src/qemu_bringup.c @@ -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 */