Build scripts adapted for new directory structure.

pull/7/head
Peter Hinch 2017-09-08 11:27:41 +01:00
rodzic 8bd0e9cbe9
commit f38e3dced6
3 zmienionych plików z 18 dodań i 15 usunięć

Wyświetl plik

@ -1,23 +1,25 @@
#! /bin/bash
cd /mnt/qnap2/data/Projects/MicroPython/micropython/esp8266
cd /mnt/qnap2/data/Projects/MicroPython/micropython/ports/esp8266
if [ $# -eq 1 ] && [ $1 = "--clean" ]
then
make clean
fi
if [ $# -eq 1 ] && [ $1 = "--erase" ]
then
make clean
esptool.py --port /dev/ttyUSB0 erase_flash
fi
if make -j 8 axtls
if make -j 8
then
if make -j 8
then
sleep 1
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify --flash_size=detect -fm dio 0 build/firmware-combined.bin
cd -
sleep 1
rshell -p /dev/ttyUSB0 --editor nano
else
echo Build failure
fi
sleep 1
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --verify --flash_size=detect -fm dio 0 build/firmware-combined.bin
cd -
sleep 4
rshell -p /dev/ttyUSB0 --editor nano --buffer-size=30
else
echo Axtls build failure
echo Build failure
fi
cd -

Wyświetl plik

@ -9,13 +9,14 @@ git submodule update --init
cd mpy-cross
make clean
make -j 8
cd ../stmhal
cd ../ports/stm32
make BOARD=PYBV11 clean
make BOARD=PYBV10 clean
make BOARD=PYBLITEV10 clean
cd ../esp8266
make clean
cd ../unix
make clean
make -j 8 axtls
# If you're going to enable deplibs: see micropython/README
#make deplibs

Wyświetl plik

@ -32,7 +32,7 @@ fi
if [ $BOARD ]
then
cd $MPDIR/stmhal
cd $MPDIR/ports/stm32
if [ $# -eq 1 ] && [ $1 = "--clean" ]
then
make BOARD=$BOARD clean