Skip to content

Commit 5c054d9

Browse files
authored
add auto select "espidf" when pio var "custom_sdkconfig" is set
1 parent 05fd8db commit 5c054d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

platform.py

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ def configure_default_packages(self, variables, targets):
6363
mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32"))
6464
frameworks = variables.get("pioframework", [])
6565

66+
if variables.get("custom_sdkconfig") is not None:
67+
frameworks.append("espidf")
68+
6669
# Enable debug tool gdb only when build debug is enabled
6770
if (variables.get("build_type") or "debug" in "".join(targets)) and tl_flag:
6871
self.packages["riscv32-esp-elf-gdb"]["optional"] = False if mcu in ["esp32c2", "esp32c3", "esp32c6", "esp32h2"] else True

0 commit comments

Comments
 (0)