nrf/boards: Enable MICROPY_VFS_LFS2 for all target boards.

Enable LittleFS v2 for all targets, except nrf51 targets when SoftDevice is
present.
This commit is contained in:
Glenn Ruben Bakke 2020-07-23 23:37:25 +02:00 committed by Damien George
parent 23e8729d3e
commit 55d4321c3e
20 changed files with 39 additions and 0 deletions

View File

@ -4,3 +4,5 @@ MCU_SUB_VARIANT = nrf9160
LD_FILES += boards/nrf9160_1M_256k.ld LD_FILES += boards/nrf9160_1M_256k.ld
NRF_DEFINES += -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE NRF_DEFINES += -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE
MICROPY_VFS_LFS2 = 1

View File

@ -6,3 +6,5 @@ LD_FILES += boards/nrf52832_512k_64k.ld
FLASHER = pyocd FLASHER = pyocd
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -6,3 +6,5 @@ LD_FILES += boards/nrf52832_512k_64k.ld
FLASHER = idap FLASHER = idap
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -6,3 +6,5 @@ LD_FILES += boards/nrf52832_512k_64k.ld
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
CFLAGS += -DBLUETOOTH_LFCLK_RC CFLAGS += -DBLUETOOTH_LFCLK_RC
MICROPY_VFS_LFS2 = 1

View File

@ -5,3 +5,5 @@ SOFTDEV_VERSION = 6.1.1
LD_FILES += boards/nrf52832_512k_64k.ld LD_FILES += boards/nrf52832_512k_64k.ld
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -6,3 +6,4 @@ LD_FILES += boards/nrf52832_512k_64k.ld
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -6,3 +6,5 @@ LD_FILES += boards/nrf52832_512k_64k.ld
FLASHER = idap FLASHER = idap
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -6,3 +6,5 @@ LD_FILES += boards/nrf52832_512k_64k.ld
FLASHER = idap FLASHER = idap
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -6,6 +6,8 @@ SOFTDEV_VERSION = 8.0.0
ifneq ($(SD),) ifneq ($(SD),)
LD_FILES += boards/microbit/custom_nrf51822_s110_microbit.ld LD_FILES += boards/microbit/custom_nrf51822_s110_microbit.ld
FROZEN_MANIFEST ?= FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
endif endif
LD_FILES += boards/nrf51x22_256k_16k.ld LD_FILES += boards/nrf51x22_256k_16k.ld

View File

@ -17,3 +17,5 @@ endif
LD_FILES += boards/nrf52840_1M_256k.ld LD_FILES += boards/nrf52840_1M_256k.ld
NRF_DEFINES += -DNRF52840_XXAA NRF_DEFINES += -DNRF52840_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -9,3 +9,5 @@ NRF_DEFINES += -DNRF52840_XXAA
# The nrf52-particle.cfg is not included here, it can be found in the Particle Workbench # The nrf52-particle.cfg is not included here, it can be found in the Particle Workbench
# Note: This requires openocd >0.10 # Note: This requires openocd >0.10
OPENOCD_TARGET ?= boards/$(BOARD)/nrf52-particle.cfg OPENOCD_TARGET ?= boards/$(BOARD)/nrf52-particle.cfg
MICROPY_VFS_LFS2 = 1

View File

@ -6,4 +6,6 @@ LD_FILES += boards/nrf51x22_256k_16k.ld
ifneq ($(SD),) ifneq ($(SD),)
FROZEN_MANIFEST ?= FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
endif endif

View File

@ -6,4 +6,6 @@ LD_FILES += boards/nrf51x22_256k_16k.ld
ifneq ($(SD),) ifneq ($(SD),)
FROZEN_MANIFEST ?= FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
endif endif

View File

@ -6,4 +6,6 @@ LD_FILES += boards/nrf51x22_256k_32k.ld
ifneq ($(SD),) ifneq ($(SD),)
FROZEN_MANIFEST ?= FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
endif endif

View File

@ -6,4 +6,6 @@ LD_FILES += boards/nrf51x22_256k_32k.ld
ifneq ($(SD),) ifneq ($(SD),)
FROZEN_MANIFEST ?= FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
endif endif

View File

@ -5,3 +5,5 @@ SOFTDEV_VERSION = 6.1.1
LD_FILES += boards/nrf52832_512k_64k.ld LD_FILES += boards/nrf52832_512k_64k.ld
NRF_DEFINES += -DNRF52832_XXAA NRF_DEFINES += -DNRF52832_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -5,3 +5,5 @@ SOFTDEV_VERSION = 6.1.1
LD_FILES += boards/nrf52840_1M_256k.ld LD_FILES += boards/nrf52840_1M_256k.ld
NRF_DEFINES += -DNRF52840_XXAA NRF_DEFINES += -DNRF52840_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -17,3 +17,5 @@ endif
LD_FILES += boards/nrf52840_1M_256k.ld LD_FILES += boards/nrf52840_1M_256k.ld
NRF_DEFINES += -DNRF52840_XXAA NRF_DEFINES += -DNRF52840_XXAA
MICROPY_VFS_LFS2 = 1

View File

@ -4,3 +4,5 @@ MCU_SUB_VARIANT = nrf9160
LD_FILES += boards/nrf9160_1M_256k.ld LD_FILES += boards/nrf9160_1M_256k.ld
NRF_DEFINES += -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE NRF_DEFINES += -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE
MICROPY_VFS_LFS2 = 1

View File

@ -8,4 +8,6 @@ CFLAGS += -DBLUETOOTH_LFCLK_RC
ifneq ($(SD),) ifneq ($(SD),)
FROZEN_MANIFEST ?= FROZEN_MANIFEST ?=
else
MICROPY_VFS_LFS2 = 1
endif endif