Commit cd796f85 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix: Unbreak "minimal" target by disabling FatFs.

Was broken since introduction of FatFs support.
parent d402bf29
...@@ -162,10 +162,15 @@ endif ...@@ -162,10 +162,15 @@ endif
LIB_SRC_C = $(addprefix lib/,\ LIB_SRC_C = $(addprefix lib/,\
$(LIB_SRC_C_EXTRA) \ $(LIB_SRC_C_EXTRA) \
utils/printf.c \ utils/printf.c \
timeutils/timeutils.c \
)
ifeq ($(MICROPY_FATFS),1)
LIB_SRC_C += $(addprefix lib/,\
fatfs/ff.c \ fatfs/ff.c \
fatfs/option/ccsbcs.c \ fatfs/option/ccsbcs.c \
timeutils/timeutils.c \
) )
endif
OBJ = $(PY_O) OBJ = $(PY_O)
OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
...@@ -235,7 +240,7 @@ fast: ...@@ -235,7 +240,7 @@ fast:
# build a minimal interpreter # build a minimal interpreter
minimal: minimal:
$(MAKE) COPT="-Os -DNDEBUG" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_minimal.h>"' BUILD=build-minimal PROG=micropython_minimal MICROPY_PY_TIME=0 MICROPY_PY_TERMIOS=0 MICROPY_PY_SOCKET=0 MICROPY_PY_FFI=0 MICROPY_USE_READLINE=0 $(MAKE) COPT="-Os -DNDEBUG" CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_minimal.h>"' BUILD=build-minimal PROG=micropython_minimal MICROPY_PY_TIME=0 MICROPY_PY_TERMIOS=0 MICROPY_PY_SOCKET=0 MICROPY_PY_FFI=0 MICROPY_USE_READLINE=0 MICROPY_FATFS=0
# build interpreter with nan-boxing as object model # build interpreter with nan-boxing as object model
nanbox: nanbox:
......
...@@ -9,6 +9,9 @@ MICROPY_FORCE_32BIT = 0 ...@@ -9,6 +9,9 @@ MICROPY_FORCE_32BIT = 0
# 2 - use GNU readline (causes binary to be licensed under GPL) # 2 - use GNU readline (causes binary to be licensed under GPL)
MICROPY_USE_READLINE = 1 MICROPY_USE_READLINE = 1
# Whether to enable FatFs VFS
MICROPY_FATFS = 1
# Subset of CPython time module # Subset of CPython time module
MICROPY_PY_TIME = 1 MICROPY_PY_TIME = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment