Skip to content

Commit

Permalink
Keep OpenOCD package available in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros authored Aug 22, 2023
1 parent 74868a8 commit 8a81489
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 @@ -91,6 +91,9 @@ def configure_default_packages(self, variables, targets):
self.packages["tool-gperf"]["optional"] = False

for name in disabled_pkgs:
# OpenOCD should be available when debugging
if name == "tool-openocd" and variables.get("build_type", "") == "debug":
continue
del self.packages[name]
return super().configure_default_packages(variables, targets)

Expand Down

0 comments on commit 8a81489

Please sign in to comment.