Browse Source

unix: Refactor mpconfigvariant.mk.

All variants (except minimal) enable text compression and fat/lfs, so move
them to the common mpconfigport.mk.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/9303/head
Jim Mussared 2 years ago
committed by Damien George
parent
commit
51b054dd66
  1. 6
      ports/unix/mpconfigport.mk
  2. 5
      ports/unix/variants/coverage/mpconfigvariant.mk
  3. 5
      ports/unix/variants/minimal/mpconfigvariant.mk
  4. 5
      ports/unix/variants/standard/mpconfigvariant.mk

6
ports/unix/mpconfigport.mk

@ -38,3 +38,9 @@ MICROPY_PY_JNI = 0
# Avoid using system libraries, use copies bundled with MicroPython
# as submodules (currently affects only libffi).
MICROPY_STANDALONE = 0
MICROPY_ROM_TEXT_COMPRESSION = 1
MICROPY_VFS_FAT = 1
MICROPY_VFS_LFS1 = 1
MICROPY_VFS_LFS2 = 1

5
ports/unix/variants/coverage/mpconfigvariant.mk

@ -12,10 +12,5 @@ LDFLAGS += -fprofile-arcs -ftest-coverage
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
USER_C_MODULES = $(TOP)/examples/usercmodule
MICROPY_ROM_TEXT_COMPRESSION = 1
MICROPY_VFS_FAT = 1
MICROPY_VFS_LFS1 = 1
MICROPY_VFS_LFS2 = 1
SRC_C += coverage.c
SRC_CXX += coveragecpp.cpp

5
ports/unix/variants/minimal/mpconfigvariant.mk

@ -2,7 +2,6 @@
FROZEN_MANIFEST =
MICROPY_ROM_TEXT_COMPRESSION = 1
MICROPY_PY_BTREE = 0
MICROPY_PY_FFI = 0
MICROPY_PY_SOCKET = 0
@ -10,3 +9,7 @@ MICROPY_PY_THREAD = 0
MICROPY_PY_TERMIOS = 0
MICROPY_PY_USSL = 0
MICROPY_USE_READLINE = 0
MICROPY_VFS_FAT = 0
MICROPY_VFS_LFS1 = 0
MICROPY_VFS_LFS2 = 0

5
ports/unix/variants/standard/mpconfigvariant.mk

@ -1,8 +1,3 @@
# This is the default variant when you `make` the Unix port.
FROZEN_MANIFEST ?= $(VARIANT_DIR)/manifest.py
MICROPY_ROM_TEXT_COMPRESSION = 1
MICROPY_VFS_FAT ?= 1
MICROPY_VFS_LFS1 ?= 1
MICROPY_VFS_LFS2 ?= 1

Loading…
Cancel
Save