From 6043874969a3e12c2997be8d3d3e2aac8fbaffd2 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 24 Aug 2023 15:06:16 -0700 Subject: [PATCH] Split out ram dependent configs --- ports/espressif/tools/update_sdkconfig.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/espressif/tools/update_sdkconfig.py b/ports/espressif/tools/update_sdkconfig.py index f1f8612fba..1f91becd2b 100644 --- a/ports/espressif/tools/update_sdkconfig.py +++ b/ports/espressif/tools/update_sdkconfig.py @@ -234,15 +234,18 @@ def update(debug, board, update_all): print(" " * len(current_group), i, config_string.strip()) target_reference = False + board_reference = False for referenced in item.referenced: if referenced.name.startswith("IDF_TARGET"): # print(item.name, "references", referenced.name) target_reference = True break + if referenced.name == "SPIRAM": + board_reference = True if (not update_all and not matches_cp_default) or ( update_all - and matches_group(config_string, BOARD_SETTINGS) + and (matches_group(config_string, BOARD_SETTINGS) or board_reference) and not matches_esp_default ): print(" " * (len(current_group) + 1), "board")