mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/same54-xpro: add support for lwEXT4
This commit is contained in:
parent
c1a8a5cc9e
commit
020aac6c4c
@ -21,6 +21,9 @@ endif
|
||||
# default to using littlefs2 on the external flash and fatfs on SD card
|
||||
ifneq (,$(filter vfs_default,$(USEMODULE)))
|
||||
USEPKG += littlefs2
|
||||
USEMODULE += fatfs_vfs
|
||||
# if ext2/3/4 is used, don't use FAT
|
||||
ifeq (,$(filter lwext%_vfs,$(USEMODULE)))
|
||||
USEMODULE += fatfs_vfs
|
||||
endif
|
||||
USEMODULE += mtd
|
||||
endif
|
||||
|
@ -87,6 +87,12 @@ static mtd_sam0_sdhc_t sdhc_dev = {
|
||||
mtd_dev_t *mtd2 = (mtd_dev_t *)&sdhc_dev;
|
||||
|
||||
#ifdef MODULE_VFS_DEFAULT
|
||||
/* default to FAT */
|
||||
#if defined(MODULE_FATFS_VFS)
|
||||
VFS_AUTO_MOUNT(fatfs, VFS_MTD(sdhc_dev), VFS_DEFAULT_SD(0), 1);
|
||||
/* but also support ext2/3/4 */
|
||||
#elif defined(MODULE_LWEXT4)
|
||||
VFS_AUTO_MOUNT(lwext4, VFS_MTD(sdhc_dev), VFS_DEFAULT_SD(0), 1);
|
||||
#endif
|
||||
#endif /* MODULE_VFS_DEFAULT */
|
||||
#endif /* MODULE_SAM0_SDHC */
|
||||
|
Loading…
Reference in New Issue
Block a user