summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2025-03-07 00:04:14 +0100
committerDamien George <damien@micropython.org>2025-03-17 13:04:53 +1100
commit1a7cbac879fa578cd992a3baf10950180e89340d (patch)
tree52437083e31974590b007a73de69dab6dfea3a8d
parent51976110e2da32b7a5b7035b7d5f17ab49bbd40e (diff)
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 <a.gatti@frob.it>
-rwxr-xr-xtools/ci.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ci.sh b/tools/ci.sh
index 5d57175c8..7105b2460 100755
--- a/tools/ci.sh
+++ b/tools/ci.sh
@@ -197,7 +197,7 @@ function ci_esp32_build_s3_c3 {
# ports/esp8266
function ci_esp8266_setup {
- sudo pip install pyserial esptool==3.3.1
+ sudo pip3 install pyserial esptool==3.3.1 pyelftools ar
wget https://github.com/jepler/esp-open-sdk/releases/download/2018-06-10/xtensa-lx106-elf-standalone.tar.gz
zcat xtensa-lx106-elf-standalone.tar.gz | tar x
# Remove this esptool.py so pip version is used instead
@@ -214,6 +214,9 @@ function ci_esp8266_build {
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC BOARD_VARIANT=FLASH_512K
make ${MAKEOPTS} -C ports/esp8266 BOARD=ESP8266_GENERIC BOARD_VARIANT=FLASH_1M
+
+ # Test building native .mpy with xtensa architecture.
+ ci_native_mpy_modules_build xtensa
}
########################################################################################