Skip to content

Commit 494bbc1

Browse files
committed
fixup! tests/pkg/fatfs_vfs: use default MTD if enabled by the board
1 parent 3e81622 commit 494bbc1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# The dependency resolution is called multiple times, but not all the
2+
# dependencies are resolved in the first round, such as the board deps.
3+
# To make sure that the board deps are resolved before running, we
4+
# create a temporary variable that stores the rounds and adds a `+` to
5+
# the string (make does not support integer incrementation).
6+
TEST_FATFS_DEP_ROUND := $(TEST_FATFS_DEP_ROUND)+
7+
8+
ifeq (++,$(TEST_FATFS_DEP_ROUND))
9+
ifeq (,$(filter mtd_sdcard mtd_sdmmc,$(USEMODULE)))
10+
# if no SD interface is specified, use mtd_sdcard by default
11+
USEMODULE += mtd_sdcard
12+
endif
13+
endif

0 commit comments

Comments
 (0)