mklittlefs util

This commit is contained in:
Ben Allfree
2026-04-10 06:22:29 -07:00
parent 61095ede6a
commit 9fc582ce14
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -98,6 +98,12 @@ jobs:
cd "$ROOT"
python -m pip install -q --upgrade pip
pip install -q platformio
pio pkg install -e "${{ inputs.target_env }}"
MKLITTLEFS_BIN=$(find "$HOME/.platformio/packages" -type f -name mklittlefs 2>/dev/null | head -1)
if [ -n "$MKLITTLEFS_BIN" ]; then
export PATH="$(dirname "$MKLITTLEFS_BIN"):$PATH"
fi
command -v mklittlefs >/dev/null 2>&1 || echo "WARNING: mklittlefs not on PATH; LittleFS build may fail"
pio run -e "${{ inputs.target_env }}" 2>&1 | tee /tmp/pio.log
BUILD_DIR=".pio/build/${{ inputs.target_env }}"
if [ ! -d "$BUILD_DIR" ]; then
+6
View File
@@ -98,6 +98,12 @@ jobs:
cd "$ROOT"
python -m pip install -q --upgrade pip
pip install -q platformio
pio pkg install -e "${{ inputs.target_env }}"
MKLITTLEFS_BIN=$(find "$HOME/.platformio/packages" -type f -name mklittlefs 2>/dev/null | head -1)
if [ -n "$MKLITTLEFS_BIN" ]; then
export PATH="$(dirname "$MKLITTLEFS_BIN"):$PATH"
fi
command -v mklittlefs >/dev/null 2>&1 || echo "WARNING: mklittlefs not on PATH; LittleFS build may fail"
pio run -e "${{ inputs.target_env }}" 2>&1 | tee /tmp/pio.log
BUILD_DIR=".pio/build/${{ inputs.target_env }}"
if [ ! -d "$BUILD_DIR" ]; then