Skip to content

Commit

Permalink
Update platform.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 23, 2024
1 parent e060256 commit 39c774b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def configure_default_packages(self, variables, targets):
mcu = variables.get("board_build.mcu", board_config.get("build.mcu", "esp32"))
frameworks = variables.get("pioframework", [])

if variables.get("custom_sdkconfig") is not None:
frameworks.append("espidf")

# Enable debug tool gdb only when build debug is enabled
if (variables.get("build_type") or "debug" in "".join(targets)) and tl_flag:
self.packages["riscv32-esp-elf-gdb"]["optional"] = False if mcu in ["esp32c2", "esp32c3", "esp32c6", "esp32h2"] else True
Expand Down

0 comments on commit 39c774b

Please sign in to comment.