Skip to content

Commit aa3d6b6

Browse files
committed
tools/ci.sh: Change esp32 CI to work with idf.py and IDF v4.0.2.
Signed-off-by: Damien George <damien@micropython.org>
1 parent da2b5fa commit aa3d6b6

File tree

2 files changed

+17
-46
lines changed

2 files changed

+17
-46
lines changed

.github/workflows/ports_esp32.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,11 @@ on:
1313
- 'ports/esp32/**'
1414

1515
jobs:
16-
idf3_build:
16+
build:
1717
runs-on: ubuntu-20.04
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Install packages
21-
run: source tools/ci.sh && ci_esp32_idf3_setup && ci_esp32_idf3_path >> $GITHUB_PATH
21+
run: source tools/ci.sh && ci_esp32_setup
2222
- name: Build
23-
env:
24-
IDF_PATH: ${{ github.workspace }}/esp-idf
25-
run: source tools/ci.sh && ci_esp32_idf3_build
26-
27-
idf4_build:
28-
runs-on: ubuntu-20.04
29-
steps:
30-
- uses: actions/checkout@v2
31-
- name: Install packages
32-
run: source tools/ci.sh && ci_esp32_idf4_setup && ci_esp32_idf4_path >> $GITHUB_PATH
33-
- name: Build
34-
env:
35-
IDF_PATH: ${{ github.workspace }}/esp-idf
36-
run: source tools/ci.sh && ci_esp32_idf4_build
23+
run: source tools/ci.sh && ci_esp32_build

tools/ci.sh

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -82,38 +82,22 @@ function ci_cc3200_build {
8282
########################################################################################
8383
# ports/esp32
8484

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 {
8886
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
114100
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
117101
make ${MAKEOPTS} -C ports/esp32 submodules
118102
make ${MAKEOPTS} -C ports/esp32
119103
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy