diff --git a/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c b/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c index b408e1d074..345d85f489 100644 --- a/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c +++ b/boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c @@ -129,7 +129,7 @@ int board_app_initialize(uintptr_t arg) #endif #ifdef CONFIG_FS_TMPFS - mount(NULL, "/tmp", "tmpfs", 0, NULL); + mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL); #endif #endif