Skip to content

Commit 218dd4b

Browse files
authored
ESP32: Preload pioarduino scons (#56)
1 parent 78d6a8e commit 218dd4b

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

bin/pio_load_and_dedupe.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ to_build=$(
1313

1414
echo "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+
1622
echo "$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
2731
done
2832
echo "All packages loaded successfully."
2933

0 commit comments

Comments
 (0)