From 8a81489e3c0bc3c20a623336972333490c696649 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Tue, 22 Aug 2023 13:51:35 +0300 Subject: [PATCH] Keep OpenOCD package available in debug mode Resolves #213 --- platform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform.py b/platform.py index 7aa54b2..e2dfef4 100644 --- a/platform.py +++ b/platform.py @@ -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)