Skip to content

Commit 4649062

Browse files
authored
install check tools
1 parent 699d93f commit 4649062

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

platform.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ def configure_default_packages(self, variables, targets):
5858
if mcu == "esp32c2":
5959
self.packages["framework-arduino-c2-skeleton-lib"]["optional"] = False
6060

61+
# Enable check tools only when "check_tool" is active
62+
for p in self.packages:
63+
if p in ("tool-cppcheck", "tool-clangtidy", "tool-pvs-studio"):
64+
self.packages[p]["optional"] = False if str(variables.get("check_tool")).strip("['']") in p else True
65+
6166
if "buildfs" in targets:
6267
filesystem = variables.get("board_build.filesystem", "littlefs")
6368
if filesystem == "littlefs":

0 commit comments

Comments
 (0)