File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ to_build=$(
1313
1414echo " Gathering environments for platform: $PLATFORM_SRC "
1515
16+ TOOL_FLAGS=" --tool platformio/tool-cppcheck --tool platformio/tool-mklittlefs"
17+ # Preload additional tools on ESP32 platforms
18+ if [[ " $PLATFORM_SRC " == esp32* ]]; then
19+ TOOL_FLAGS=" $TOOL_FLAGS --tool https://github.com/pioarduino/scons/releases/download/4.8.1/scons-local-4.8.1.tar.gz"
20+ fi
21+
1622echo " $to_build " | while read -r env; do
1723 echo " ################################################"
1824 echo " ▶️ Loading pkgs for env: $env "
@@ -21,9 +27,7 @@ echo "$to_build" | while read -r env; do
2127 pio pkg install --environment " $env "
2228 # Install additional tools
2329 # `--no-save` prevents this from modifying platformio.ini
24- pio pkg install --environment " $env " --no-save \
25- --tool platformio/tool-cppcheck \
26- --tool platformio/tool-mklittlefs
30+ pio pkg install --environment " $env " --no-save $TOOL_FLAGS
2731done
2832echo " All packages loaded successfully."
2933
You can’t perform that action at this time.
0 commit comments