Skip to content

Commit cbffd0a

Browse files
committed
unix: Disable FatFs VFS for normal build, keep enabled for coverage.
It's enabled mostly for unit testing, and we do that in full with coverage build.
1 parent e6e7e0e commit cbffd0a

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

unix/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,11 @@ LIB_SRC_C = $(addprefix lib/,\
156156
timeutils/timeutils.c \
157157
)
158158

159-
ifeq ($(MICROPY_FATFS),1)
159+
# FatFS VFS support
160160
LIB_SRC_C += $(addprefix lib/,\
161161
fatfs/ff.c \
162162
fatfs/option/ccsbcs.c \
163163
)
164-
endif
165164

166165
OBJ = $(PY_O)
167166
OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))

unix/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
#define MICROPY_FATFS_VOLUMES (3)
131131
#define MICROPY_FATFS_MAX_SS (4096)
132132
#define MICROPY_FATFS_LFN_CODE_PAGE (437) /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */
133-
#define MICROPY_FSUSERMOUNT (1)
134-
#define MICROPY_VFS_FAT (1)
133+
#define MICROPY_FSUSERMOUNT (0)
134+
#define MICROPY_VFS_FAT (0)
135135

136136
// Define to MICROPY_ERROR_REPORTING_DETAILED to get function, etc.
137137
// names in exception messages (may require more RAM).

unix/mpconfigport_coverage.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@
3131

3232
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)
3333
#define MICROPY_PY_IO_BUFFEREDWRITER (1)
34+
#undef MICROPY_FSUSERMOUNT
35+
#undef MICROPY_VFS_FAT
36+
#define MICROPY_FSUSERMOUNT (1)
37+
#define MICROPY_VFS_FAT (1)

0 commit comments

Comments
 (0)