Skip to content

Commit 1a7cbac

Browse files
agattidpgeorge
authored andcommitted
tools/ci.sh: Build Xtensa natmods as part of the CI process.
This commit expands the CI tests by checking whether the example native modules are able to be built for the Xtensa architecture. This was made possible by the changes to mpy_ld that allow symbol resolution across standard compiler-provided libraries. Signed-off-by: Alessandro Gatti <[email protected]>
1 parent 5197611 commit 1a7cbac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/ci.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function ci_esp32_build_s3_c3 {
197197
# ports/esp8266
198198

199199
function ci_esp8266_setup {
200-
sudo pip install pyserial esptool==3.3.1
200+
sudo pip3 install pyserial esptool==3.3.1 pyelftools ar
201201
wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz
202202
zcat xtensa-lx106-elf-standalone.tar.gz | tar x
203203
# Remove this esptool.py so pip version is used instead
@@ -214,6 +214,9 @@ function ci_esp8266_build {
214214
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC
215215
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC BOARD_VARIANT=FLASH_512K
216216
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC BOARD_VARIANT=FLASH_1M
217+
218+
# Test building native .mpy with xtensa architecture.
219+
ci_native_mpy_modules_build xtensa
217220
}
218221

219222
########################################################################################

0 commit comments

Comments
 (0)