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:
parent
9cc54f7d2f
commit
6dff3cbbaa
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user