Skip to content

Commit fda5e98

Browse files
author
Emmanuel Florent
committed
changed to target release
1 parent 601f6c9 commit fda5e98

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

pycom-docker-fw-build/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ If you have your MicroPython project in the current directory `.` just type:
1616
```
1717
sudo docker run -v `pwd`:/opt/frozen -it goinvent/pycom-fw build LOPY4 myproject
1818
```
19-
For building against a specific revision (ex:v1.20.0.rc0 idf_dev) you can use:
19+
For building against a specific revision (ex:v1.20.0.rc0 idf_v3.1) you can use:
2020
```
21-
sudo docker run -v `pwd`:/opt/frozen -it goinvent/pycom-fw build LOPY4 myproject v1.20.0.rc0 idf_v3.1
21+
sudo docker run -v `pwd`:/opt/frozen -it goinvent/pycom-fw build FIPY myproject v1.20.0.rc0 idf_v3.1
2222
```
2323

24+
2425
### note:
2526

2627
The Frozen code implementation might not support sub-directories in MicroPython code.

pycom-docker-fw-build/assets/build

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,13 @@ function build() {
6161
export IDF_PATH=/opt/pycom-esp-idf
6262
board=`echo "$BOARD" | tr '[:upper:]' '[:lower:]'`
6363
cd /opt/pycom-micropython-sigfox/esp32/ &&
64-
make clean &&
65-
make BOARD=$BOARD TARGET=boot_app &&
66-
cp /opt/frozen/*.py /opt/pycom-micropython-sigfox/esp32/frozen/Custom/ &&
67-
cd ../esp32/build/$BOARD/release &&
68-
mkdir -p firmware_package &&
69-
cd firmware_package/ &&
70-
cp ../bootloader/bootloader.bin . &&
71-
cp ../application.elf appimg.bin &&
72-
cp ../lib/partitions.bin . &&
73-
cat ../../../../tools/script | sed s/\"appimg.bin\"/\"${board}.bin\"/ > ./script;
74-
cp ../$board.bin . &&
75-
tar -czvf /opt/frozen/$board-firmware-$PROJECT.tar.gz script appimg.bin bootloader.bin partitions.bin $board.bin &&
76-
echo "Firmware ready /opt/frozen/$board-firmware-$PROJECT.tar.gz"
64+
make clean BOARD=$BOARD &&
65+
cd ../mpy-cross && make clean && make && cd ../esp32 &&
66+
cp /opt/frozen/*.py ./frozen/Base/ &&
67+
mv ./frozen/Base/main.py ./frozen/Base/_main.py
68+
make release BOARD=$BOARD RELEASE_DIR=/tmp
69+
mv /tmp/*.tar.gz /opt/frozen/$board-firmware-$PROJECT.tar.gz
70+
echo "Firmware $board-firmware-$PROJECT.tar.gz ready !"
7771
}
7872

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

0 commit comments

Comments
 (0)