From 9274f80130b483df6b1d3af5f40bce34a0c602ef Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 10 Dec 2025 12:19:20 +1100 Subject: [PATCH] esp32/boards/ESP32_GENERIC_S3: Reinstate old FLASH_4M variant. Commit 6201e77999b3614518abc4b21773e735d9b0b0ee removed the ESP32_GENERIC_S3 FLASH_4M variant from `board.json`. But the firmware still exists on the download server, and it makes sense to still keep those old versions available for download, just like all other older versions are still available. This commit introduce a new scheme for `board.json` whereby old variants that are no longer built can be moved to the "old_variants" section. This keeps them available on the download page, allowing a way to deprecate individual board variants without removing them entirely. An optional string can be added to the old variant to describe why it's obsolete and what to use instead. Signed-off-by: Damien George --- ports/esp32/boards/ESP32_GENERIC_S3/board.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/esp32/boards/ESP32_GENERIC_S3/board.json b/ports/esp32/boards/ESP32_GENERIC_S3/board.json index 7a546d35fc..b383dfa068 100644 --- a/ports/esp32/boards/ESP32_GENERIC_S3/board.json +++ b/ports/esp32/boards/ESP32_GENERIC_S3/board.json @@ -22,5 +22,8 @@ "vendor": "Espressif", "variants": { "SPIRAM_OCT": "Support for Octal-SPIRAM" + }, + "old_variants": { + "FLASH_4M": ["4MiB flash", "Use the standard variant instead."] } }