Split out ram dependent configs

This commit is contained in:
Scott Shawcroft 2023-08-24 15:06:16 -07:00
parent feabf7b6ce
commit 6043874969
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

View File

@ -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")