Skip to content

Commit 4b924b1

Browse files
committed
Chat suggestions
1 parent d4dc80f commit 4b924b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_and_check.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ source ./esp-idf/export.sh
4242

4343
pip3 install pyelftools
4444
pip3 install ar
45-
pip3 install uf2conv
45+
# Ensure uf2conv.py is importable by setting PYTHONPATH
46+
export PYTHONPATH="$(pwd)/third_party/micropython/tools${PYTHONPATH:+:$PYTHONPATH}"
4647

4748
# Build micropython cross compiler
4849
pushd third_party/micropython >/dev/null
@@ -63,4 +64,3 @@ idf.py build -DCMAKE_C_FLAGS="-Wno-error=stringop-overflow -Wno-stringop-overflo
6364
chmod +x ../../scripts/assemble-unified-image-esp.sh
6465
../../scripts/assemble-unified-image-esp.sh ../../third_party/micropython/ports/esp32
6566
popd >/dev/null
66-

0 commit comments

Comments
 (0)