Skip to content

Commit

Permalink
changed to target release
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Florent committed Dec 14, 2018
1 parent 601f6c9 commit fda5e98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
5 changes: 3 additions & 2 deletions pycom-docker-fw-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ If you have your MicroPython project in the current directory `.` just type:
```
sudo docker run -v `pwd`:/opt/frozen -it goinvent/pycom-fw build LOPY4 myproject
```
For building against a specific revision (ex:v1.20.0.rc0 idf_dev) you can use:
For building against a specific revision (ex:v1.20.0.rc0 idf_v3.1) you can use:
```
sudo docker run -v `pwd`:/opt/frozen -it goinvent/pycom-fw build LOPY4 myproject v1.20.0.rc0 idf_v3.1
sudo docker run -v `pwd`:/opt/frozen -it goinvent/pycom-fw build FIPY myproject v1.20.0.rc0 idf_v3.1
```


### note:

The Frozen code implementation might not support sub-directories in MicroPython code.
Expand Down
20 changes: 7 additions & 13 deletions pycom-docker-fw-build/assets/build
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,13 @@ function build() {
export IDF_PATH=/opt/pycom-esp-idf
board=`echo "$BOARD" | tr '[:upper:]' '[:lower:]'`
cd /opt/pycom-micropython-sigfox/esp32/ &&
make clean &&
make BOARD=$BOARD TARGET=boot_app &&
cp /opt/frozen/*.py /opt/pycom-micropython-sigfox/esp32/frozen/Custom/ &&
cd ../esp32/build/$BOARD/release &&
mkdir -p firmware_package &&
cd firmware_package/ &&
cp ../bootloader/bootloader.bin . &&
cp ../application.elf appimg.bin &&
cp ../lib/partitions.bin . &&
cat ../../../../tools/script | sed s/\"appimg.bin\"/\"${board}.bin\"/ > ./script;
cp ../$board.bin . &&
tar -czvf /opt/frozen/$board-firmware-$PROJECT.tar.gz script appimg.bin bootloader.bin partitions.bin $board.bin &&
echo "Firmware ready /opt/frozen/$board-firmware-$PROJECT.tar.gz"
make clean BOARD=$BOARD &&
cd ../mpy-cross && make clean && make && cd ../esp32 &&
cp /opt/frozen/*.py ./frozen/Base/ &&
mv ./frozen/Base/main.py ./frozen/Base/_main.py
make release BOARD=$BOARD RELEASE_DIR=/tmp
mv /tmp/*.tar.gz /opt/frozen/$board-firmware-$PROJECT.tar.gz
echo "Firmware $board-firmware-$PROJECT.tar.gz ready !"
}

[[ $boards =~ (^|[[:space:]])$1($|[[:space:]]) ]] &&
Expand Down

0 comments on commit fda5e98

Please sign in to comment.