|
56 | 56 | "CONFIG_BT_CTRL_PINNED_TO_CORE", |
57 | 57 | "CONFIG_SPIRAM_SPEED_2", |
58 | 58 | "CONFIG_SPIRAM_BANKSWITCH_ENABLE", # For ESP32 |
| 59 | + "CONFIG_ESP_WIFI_RX_IRAM_OPT", |
59 | 60 | ] |
60 | 61 |
|
61 | 62 | BOARD_SETTINGS = [ |
@@ -360,6 +361,11 @@ def update(debug, board, update_all): |
360 | 361 | target_kconfig_snippets.add(loc) |
361 | 362 | target_symbols = target_symbols.union(differing_keys) |
362 | 363 |
|
| 364 | + # We treat SPIRAM differently so make sure it isn't a target related |
| 365 | + # symbol (even though some targets don't support SPIRAM). |
| 366 | + if "SPIRAM" in target_symbols: |
| 367 | + target_symbols.remove("SPIRAM") |
| 368 | + |
363 | 369 | # kconfig settings can be set by others. item.referenced doesn't |
364 | 370 | # know this. So we collect all things that reference this using |
365 | 371 | # rev_dep. |
@@ -428,7 +434,9 @@ def update(debug, board, update_all): |
428 | 434 | # Always document the above settings. Settings below should |
429 | 435 | # be non-default. |
430 | 436 | pass |
431 | | - elif matches_group(config_string, PSRAM_SETTINGS) or psram_reference: |
| 437 | + elif matches_group(config_string, PSRAM_SETTINGS) or ( |
| 438 | + psram_reference and not target_setting |
| 439 | + ): |
432 | 440 | print(" " * (len(current_group) + 1), "psram shared") |
433 | 441 | last_psram_group = add_group(psram_settings, last_psram_group, current_group) |
434 | 442 | psram_settings.append(config_string) |
|
0 commit comments