You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
21 lines
533 B
Bash
Executable File
21 lines
533 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# NOTE: ~/.espressif doesn't exist on MacOS
|
|
export PATH=~/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20241119/xtensa-esp-elf/bin:$PATH
|
|
. ~/.espressif/python_env/idf5.4_py3.11_env/bin/activate
|
|
|
|
# Even though MacOS installs pyelftools, it still complains about No module named 'elftools'
|
|
pip install pyelftools ar
|
|
|
|
mydir=$(readlink -f "$0")
|
|
mydir=$(dirname "$mydir")
|
|
|
|
cd "$mydir"
|
|
|
|
rm -rf build
|
|
rm *.mpy
|
|
|
|
make </dev/null
|
|
|
|
mv "$mydir"/breakout*.mpy "$mydir"/../../internal_filesystem/apps/com.micropythonos.breakout/assets/
|