This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new ce16288494 qemu_bringup: add tmppfs mount for qemu-armv8a
ce16288494 is described below
commit ce16288494f8a8ead0fac190b63977c686694f48
Author: Bowen Wang <[email protected]>
AuthorDate: Sat Oct 7 19:31:32 2023 +0800
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 <[email protected]>
---
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 */