diff --git a/fs/littlefs/Make.defs b/fs/littlefs/Make.defs index b922eb5353..560a674d27 100644 --- a/fs/littlefs/Make.defs +++ b/fs/littlefs/Make.defs @@ -37,6 +37,7 @@ CFLAGS += -DLFS_WARN=fwarn CFLAGS += -DLFS_ERROR=ferr CFLAGS += -DLFS_ASSERT=DEBUGASSERT CFLAGS += -DLFS_CONFIG=../lfs_vfs.h +CFLAGS += -DLFS_NAME_MAX=$(CONFIG_NAME_MAX) LITTLEFS_VERSION ?= 2.4.0 LITTLEFS_TARBALL = v$(LITTLEFS_VERSION).tar.gz