From 5b4c7cbf1e1c1d0945217219068c7da1d83628a3 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 8 May 2022 23:21:37 +0200 Subject: [PATCH] boards/native: allow to overwrite default fs --- boards/native/Makefile.dep | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/boards/native/Makefile.dep b/boards/native/Makefile.dep index f835782596..5bc18c1445 100644 --- a/boards/native/Makefile.dep +++ b/boards/native/Makefile.dep @@ -12,9 +12,11 @@ ifneq (,$(filter periph_can,$(FEATURES_USED))) USEPKG += libsocketcan endif -# default to using littlefs2 on the virtual flash +# default to using littlefs2 on the virtual flash if no other fs was selected ifneq (,$(filter vfs_default,$(USEMODULE))) - USEPKG += littlefs2 + ifeq (,$(filter spiffs littlefs fatfs_vfs,$(USEMODULE))) + USEMODULE += littlefs2 + endif USEMODULE += mtd endif