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

pkg/littlefs2: allow VFS/MTD driver opt-out

This aligns Makefile-based and Kconfig-based dependency resolution.
This commit is contained in:
Jue 2022-03-29 18:17:08 +02:00 committed by Juergen Fitschen
parent 9cc54f7d2f
commit 6dff3cbbaa
2 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,9 @@
USEMODULE += vfs
USEMODULE += littlefs2_fs
USEMODULE += mtd
DEFAULT_MODULE += littlefs2_fs
# require littlefs2_fs dependencies if this module isn't disabled
ifeq (,$(filter littlefs2_fs,$(DISABLE_MODULE)))
USEMODULE += vfs
USEMODULE += mtd
endif
FEATURES_BLACKLIST += arch_msp430

View File

@ -1,6 +1,8 @@
INCLUDES += -I$(PKGDIRBASE)/littlefs2
DIRS += $(RIOTBASE)/pkg/littlefs2/fs
ifneq (,$(filter littlefs2_fs,$(USEMODULE)))
DIRS += $(RIOTBASE)/pkg/littlefs2/fs
endif
# Reduce LFS_NAME_MAX to 31 (as VFS_NAME_MAX default)
CFLAGS += -DLFS_NAME_MAX=31