From 4649062680c8d31da364dc5bc7604cfb3e8fd3ec Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Wed, 15 Jan 2025 15:37:33 +0100 Subject: [PATCH] install check tools --- platform.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform.py b/platform.py index 629ff8a..58e1b53 100644 --- a/platform.py +++ b/platform.py @@ -58,6 +58,11 @@ class Espressif32Platform(PlatformBase): if mcu == "esp32c2": self.packages["framework-arduino-c2-skeleton-lib"]["optional"] = False + # Enable check tools only when "check_tool" is active + for p in self.packages: + if p in ("tool-cppcheck", "tool-clangtidy", "tool-pvs-studio"): + self.packages[p]["optional"] = False if str(variables.get("check_tool")).strip("['']") in p else True + if "buildfs" in targets: filesystem = variables.get("board_build.filesystem", "littlefs") if filesystem == "littlefs":