From 92fa1055efe5315276cad7b89f484a6e65cc7810 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Thu, 8 Jul 2021 22:19:54 +0200 Subject: [PATCH] Allow changing size of the filesystem on samd21 per board As the CircuitPython grows, it may at some point no longer be possible to squeeze it on some of the flash-less SAMD21 boards, so it would be good to have the option of shrinking the filesystem size on per-board basis. This change allows to define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE inside the board's mpconfigborard.h file. --- ports/atmel-samd/mpconfigport.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/atmel-samd/mpconfigport.h b/ports/atmel-samd/mpconfigport.h index 20f5e2bed0..686bdcd294 100644 --- a/ports/atmel-samd/mpconfigport.h +++ b/ports/atmel-samd/mpconfigport.h @@ -92,11 +92,13 @@ #ifdef SAMD21 +#ifndef CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE #if INTERNAL_FLASH_FILESYSTEM #define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (64 * 1024) #else #define CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_SIZE (0) #endif +#endif #ifndef CIRCUITPY_INTERNAL_NVM_SIZE #define CIRCUITPY_INTERNAL_NVM_SIZE (256)