From e8c92240e25f75a754f3b12f6a25edd6b8771bb7 Mon Sep 17 00:00:00 2001 From: Alessandro Gatti Date: Sun, 1 Jun 2025 19:19:58 +0200 Subject: [PATCH] tools/ci.sh: Remove natmod build restrictions for Xtensa. This commit lets the CI pipeline build all natmods for the Xtensa target, now that ROM symbols can be used in the linking process. The restriction was put in place due to build failures on certain natmods for Xtensa, as ROM symbols would not be used, causing undefined symbol errors at build time. Signed-off-by: Alessandro Gatti --- tools/ci.sh | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/tools/ci.sh b/tools/ci.sh index d12b4bcd3..7de21e43b 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -524,23 +524,12 @@ function ci_native_mpy_modules_build { else arch=$1 fi - for natmod in features1 features3 features4 heapq re + for natmod in deflate features1 features3 features4 framebuf heapq random re do make -C examples/natmod/$natmod clean make -C examples/natmod/$natmod ARCH=$arch done - # deflate, framebuf, and random currently cannot build on xtensa due to - # some symbols that have been removed from the compiler's runtime, in - # favour of being provided from ROM. - if [ $arch != "xtensa" ]; then - for natmod in deflate framebuf random - do - make -C examples/natmod/$natmod clean - make -C examples/natmod/$natmod ARCH=$arch - done - fi - # features2 requires soft-float on armv7m, rv32imc, and xtensa. On armv6m # the compiler generates absolute relocations in the object file # referencing soft-float functions, which is not supported at the moment. @@ -551,10 +540,8 @@ function ci_native_mpy_modules_build { make -C examples/natmod/features2 ARCH=$arch fi - # btree requires thread local storage support on rv32imc, whilst on xtensa - # it relies on symbols that are provided from ROM but not exposed to - # natmods at the moment. - if [ $arch != "rv32imc" ] && [ $arch != "xtensa" ]; then + # btree requires thread local storage support on rv32imc. + if [ $arch != "rv32imc" ]; then make -C examples/natmod/btree clean make -C examples/natmod/btree ARCH=$arch fi