提交 909fe30d 编写于 作者: R robert-hh 提交者: Damien George

samd: Set the LFS type in mpconfigmcu.mk instead of mpconfigboard.mk.

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: Nrobert-hh <robert@hammelrath.com>
上级 5a9a0df3
...@@ -5,5 +5,4 @@ TEXT0 = 0x2000 ...@@ -5,5 +5,4 @@ TEXT0 = 0x2000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 248K MICROPY_HW_CODESIZE ?= 248K
...@@ -5,5 +5,4 @@ TEXT0 = 0x4000 ...@@ -5,5 +5,4 @@ TEXT0 = 0x4000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K MICROPY_HW_CODESIZE ?= 496K
...@@ -5,5 +5,4 @@ TEXT0 = 0x2000 ...@@ -5,5 +5,4 @@ TEXT0 = 0x2000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 248K MICROPY_HW_CODESIZE ?= 248K
...@@ -5,5 +5,4 @@ TEXT0 = 0x4000 ...@@ -5,5 +5,4 @@ TEXT0 = 0x4000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K MICROPY_HW_CODESIZE ?= 496K
...@@ -4,8 +4,6 @@ LD_FILES = boards/samd51x19a.ld sections.ld ...@@ -4,8 +4,6 @@ LD_FILES = boards/samd51x19a.ld sections.ld
TEXT0 = 0x4000 TEXT0 = 0x4000
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_PY_NETWORK ?= 1 MICROPY_PY_NETWORK ?= 1
MICROPY_PY_NETWORK_NINAW10 ?= 1 MICROPY_PY_NETWORK_NINAW10 ?= 1
......
...@@ -2,7 +2,3 @@ MCU_SERIES = SAMD21 ...@@ -2,7 +2,3 @@ MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21E18A CMSIS_MCU = SAMD21E18A
LD_FILES = boards/samd21x18a.ld sections.ld LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000 TEXT0 = 0x2000
# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
...@@ -6,5 +6,4 @@ TEXT0 = 0x4000 ...@@ -6,5 +6,4 @@ TEXT0 = 0x4000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K MICROPY_HW_CODESIZE ?= 496K
...@@ -2,7 +2,3 @@ MCU_SERIES = SAMD21 ...@@ -2,7 +2,3 @@ MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21J18A CMSIS_MCU = SAMD21J18A
LD_FILES = boards/samd21x18a.ld sections.ld LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000 TEXT0 = 0x2000
# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
\ No newline at end of file
...@@ -5,5 +5,4 @@ TEXT0 = 0x4000 ...@@ -5,5 +5,4 @@ TEXT0 = 0x4000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 496K MICROPY_HW_CODESIZE ?= 496K
...@@ -2,8 +2,3 @@ MCU_SERIES = SAMD21 ...@@ -2,8 +2,3 @@ MCU_SERIES = SAMD21
CMSIS_MCU = SAMD21G18A CMSIS_MCU = SAMD21G18A
LD_FILES = boards/samd21x18a.ld sections.ld LD_FILES = boards/samd21x18a.ld sections.ld
TEXT0 = 0x2000 TEXT0 = 0x2000
# The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings
MICROPY_VFS_LFS1 ?= 1
...@@ -5,5 +5,4 @@ TEXT0 = 0x4000 ...@@ -5,5 +5,4 @@ TEXT0 = 0x4000
# The ?='s allow overriding in mpconfigboard.mk. # The ?='s allow overriding in mpconfigboard.mk.
# MicroPython settings # MicroPython settings
MICROPY_VFS_LFS1 ?= 1
MICROPY_HW_CODESIZE ?= 1008K MICROPY_HW_CODESIZE ?= 1008K
...@@ -4,6 +4,8 @@ MPY_CROSS_MCU_ARCH = armv6m ...@@ -4,6 +4,8 @@ MPY_CROSS_MCU_ARCH = armv6m
MICROPY_HW_CODESIZE ?= 184K MICROPY_HW_CODESIZE ?= 184K
MICROPY_VFS_LFS1 ?= 1
SRC_S += shared/runtime/gchelper_thumb1.s SRC_S += shared/runtime/gchelper_thumb1.s
LIBM_SRC_C += $(addprefix lib/libm/,\ LIBM_SRC_C += $(addprefix lib/libm/,\
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册