1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/native: use default mount point

This commit is contained in:
Benjamin Valentin 2022-03-28 18:03:43 +02:00
parent 2d352306ea
commit a652bea27e

View File

@ -35,7 +35,7 @@ mtd_dev_t *mtd0 = &mtd0_dev.base;
#endif
#ifdef MODULE_VFS
#include "vfs.h"
#include "vfs_default.h"
/*
* On `native` we define auto-mounts for every file system.
@ -47,27 +47,19 @@ mtd_dev_t *mtd0 = &mtd0_dev.base;
/* littlefs support */
#if defined(MODULE_LITTLEFS)
#include "fs/littlefs_fs.h"
VFS_AUTO_MOUNT(littlefs, VFS_MTD(mtd0_dev), "/nvm", 0);
VFS_AUTO_MOUNT(littlefs, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
/* littlefs2 support */
#elif defined(MODULE_LITTLEFS2)
#include "fs/littlefs2_fs.h"
VFS_AUTO_MOUNT(littlefs2, VFS_MTD(mtd0_dev), "/nvm", 0);
VFS_AUTO_MOUNT(littlefs2, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
/* spiffs support */
#elif defined(MODULE_SPIFFS)
#include "fs/spiffs_fs.h"
VFS_AUTO_MOUNT(spiffs, VFS_MTD(mtd0_dev), "/nvm", 0);
VFS_AUTO_MOUNT(spiffs, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
/* FAT support */
#elif defined(MODULE_FATFS_VFS)
#include "fs/fatfs.h"
VFS_AUTO_MOUNT(fatfs, VFS_MTD(mtd0_dev), "/nvm", 0);
VFS_AUTO_MOUNT(fatfs, VFS_MTD(mtd0_dev), VFS_DEFAULT_NVM(0), 0);
#endif
#endif /* MODULE_VFS */