Skip to content

Commit

Permalink
samd: Set the LFS type in mpconfigmcu.mk instead of mpconfigboard.mk.
Browse files Browse the repository at this point in the history
SAMD21: set the filesystem type to LFS1.

SAMD51: the type is already set to LFS2, support is now dropped for LFS1.
It has not been used and dropping it saves 10 k of flash.

Signed-off-by: robert-hh <robert@hammelrath.com>
  • Loading branch information
robert-hh authored and dpgeorge committed Jun 27, 2023
1 parent 5a9a0df commit 909fe30
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 22 deletions.
Expand Up @@ -5,5 +5,4 @@ TEXT0 = 0x2000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 248K
Expand Up @@ -5,5 +5,4 @@ TEXT0 = 0x4000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K
Expand Up @@ -5,5 +5,4 @@ TEXT0 = 0x2000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 248K
Expand Up @@ -5,5 +5,4 @@ TEXT0 = 0x4000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K
2 changes: 0 additions & 2 deletions ports/samd/boards/ADAFRUIT_METRO_M4_EXPRESS/mpconfigboard.mk
Expand Up @@ -4,8 +4,6 @@ LD_FILES = boards/samd51x19a.ld sections.ld
TEXT0 = 0x4000

# MicroPython settings
MICROPY_VFS_LFS1 ?= 1

MICROPY_PY_NETWORK ?= 1
MICROPY_PY_NETWORK_NINAW10 ?= 1

Expand Down
4 changes: 0 additions & 4 deletions ports/samd/boards/ADAFRUIT_TRINKET_M0/mpconfigboard.mk
Expand Up @@ -2,7 +2,3 @@ MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21E18A
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
1 change: 0 additions & 1 deletion ports/samd/boards/MINISAM_M4/mpconfigboard.mk
Expand Up @@ -6,5 +6,4 @@ TEXT0 = 0x4000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K
4 changes: 0 additions & 4 deletions ports/samd/boards/SAMD21_XPLAINED_PRO/mpconfigboard.mk
Expand Up @@ -2,7 +2,3 @@ MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21J18A
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
1 change: 0 additions & 1 deletion ports/samd/boards/SEEED_WIO_TERMINAL/mpconfigboard.mk
Expand Up @@ -5,5 +5,4 @@ TEXT0 = 0x4000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K
5 changes: 0 additions & 5 deletions ports/samd/boards/SEEED_XIAO_SAMD21/mpconfigboard.mk
Expand Up @@ -2,8 +2,3 @@ MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21G18A
LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1

Expand Up @@ -5,5 +5,4 @@ TEXT0 = 0x4000

# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 1008K
2 changes: 2 additions & 0 deletions ports/samd/mcu/samd21/mpconfigmcu.mk
Expand Up @@ -4,6 +4,8 @@ MPY_CROSS_MCU_ARCH = armv6m

MICROPY_HW_CODESIZE ?= 184K

MICROPY_VFS_LFS1 ?= 1

SRC_S += shared/runtime/gchelper_thumb1.s

LIBM_SRC_C += $(addprefix lib/libm/,\
Expand Down

0 comments on commit 909fe30

Please sign in to comment.