This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ if [ $4 -eq 1 ]; then
16
16
else
17
17
IMG_MAX_SIZE_8MB=2027520
18
18
fi
19
- IMG_MAX_SIZE_4MB=1761280
19
+ # 4MB boards are deprecated
20
+ # IMG_MAX_SIZE_4MB=1761280
21
+
20
22
OS=" $( uname) "
21
23
22
24
# Script Has to be called from esp32 Dir
56
58
total_size=$(( ${size_app} + ${size_boot} ))
57
59
58
60
59
- IMG_MAX_SIZE=${IMG_MAX_SIZE_4MB}
60
-
61
- if [ " ${BOARD} " = " LOPY4" -o " ${BOARD} " = " GPY" -o " ${BOARD} " = " FIPY" -o " ${BOARD} " = " LOPY" ] ; then
62
- # LOPY image is for L01 (not Lopy1), which has a 8MB chip
63
- IMG_MAX_SIZE=${IMG_MAX_SIZE_8MB}
64
- elif [ " ${BOARD} " = " WIPY" -a " ${VARIANT} " = " PYGATE" ] ; then
65
- # WiPy2.0 has a 4MB chip
66
- # WiPy3.0 has a 8MB chip
67
- # they are both supported by BOARD=WIPY
68
- # on the Pygate we support only the WiPy3.0, so for this combination we allow the 8MB limit
69
- IMG_MAX_SIZE=${IMG_MAX_SIZE_8MB}
70
- fi
61
+ IMG_MAX_SIZE=${IMG_MAX_SIZE_8MB}
71
62
72
63
if [ ${total_size} -gt ${IMG_MAX_SIZE} ] ; then
73
64
echo " ${total_size} bytes => Firmware image size is NOT ok. It exceeds the available space ${IMG_MAX_SIZE} by $[ $total_size - $IMG_MAX_SIZE ]!" >&2
You can’t perform that action at this time.
0 commit comments