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 0916461f8b arm/qemu: Add mounting of tmpfs
0916461f8b is described below

commit 0916461f8bbd26a235e8f00c681675f0f977a536
Author: wangmingrong1 <[email protected]>
AuthorDate: Wed Sep 18 12:20:30 2024 +0800

    arm/qemu: Add mounting of tmpfs
    
    Signed-off-by: wangmingrong1 <[email protected]>
---
 boards/arm/qemu/qemu-armv7a/src/qemu_bringup.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/boards/arm/qemu/qemu-armv7a/src/qemu_bringup.c 
b/boards/arm/qemu/qemu-armv7a/src/qemu_bringup.c
index 0fc675a2b3..55a5efc054 100644
--- a/boards/arm/qemu/qemu-armv7a/src/qemu_bringup.c
+++ b/boards/arm/qemu/qemu-armv7a/src/qemu_bringup.c
@@ -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 */
 

Reply via email to