@@ -82,38 +82,22 @@ function ci_cc3200_build {
82
82
# #######################################################################################
83
83
# ports/esp32
84
84
85
- function ci_esp32_idf3_setup {
86
- sudo pip3 install pyserial ' pyparsing<2.4'
87
- curl -L https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz | tar zxf -
85
+ function ci_esp32_setup {
88
86
git clone https://github.com/espressif/esp-idf.git
89
- }
90
-
91
- function ci_esp32_idf3_path {
92
- echo $( pwd) /xtensa-esp32-elf/bin
93
- }
94
-
95
- function ci_esp32_idf3_build {
96
- make ${MAKEOPTS} -C mpy-cross
97
- git -C esp-idf checkout $( grep " ESPIDF_SUPHASH_V3 :=" ports/esp32/Makefile | cut -d " " -f 3)
98
- git -C esp-idf submodule update --init components/json/cJSON components/esp32/lib components/esptool_py/esptool components/expat/expat components/lwip/lwip components/mbedtls/mbedtls components/micro-ecc/micro-ecc components/nghttp/nghttp2 components/nimble components/bt
99
- make ${MAKEOPTS} -C ports/esp32 submodules
100
- make ${MAKEOPTS} -C ports/esp32
101
- }
102
-
103
- function ci_esp32_idf4_setup {
104
- sudo pip3 install pyserial ' pyparsing<2.4'
105
- curl -L https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp-2019r2-linux-amd64.tar.gz | tar zxf -
106
- git clone https://github.com/espressif/esp-idf.git
107
- }
108
-
109
- function ci_esp32_idf4_path {
110
- echo $( pwd) /xtensa-esp32-elf/bin
111
- }
112
-
113
- function ci_esp32_idf4_build {
87
+ git -C esp-idf checkout v4.0.2
88
+ git -C esp-idf submodule update --init \
89
+ components/bt/controller/lib \
90
+ components/bt/host/nimble/nimble \
91
+ components/esp_wifi/lib_esp32 \
92
+ components/esptool_py/esptool \
93
+ components/lwip/lwip \
94
+ components/mbedtls/mbedtls
95
+ ./esp-idf/install.sh
96
+ }
97
+
98
+ function ci_esp32_build {
99
+ source esp-idf/export.sh
114
100
make ${MAKEOPTS} -C mpy-cross
115
- git -C esp-idf checkout $( grep " ESPIDF_SUPHASH_V4 :=" ports/esp32/Makefile | cut -d " " -f 3)
116
- git -C esp-idf submodule update --init components/bt/controller/lib components/bt/host/nimble/nimble components/esp_wifi/lib_esp32 components/esptool_py/esptool components/lwip/lwip components/mbedtls/mbedtls
117
101
make ${MAKEOPTS} -C ports/esp32 submodules
118
102
make ${MAKEOPTS} -C ports/esp32
119
103
}
0 commit comments