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 <a.gatti@frob.it>
This commit is contained in:
Alessandro Gatti
2025-06-01 19:19:58 +02:00
committed by Damien George
parent e4c0e2b73d
commit e8c92240e2

View File

@@ -524,23 +524,12 @@ function ci_native_mpy_modules_build {
else else
arch=$1 arch=$1
fi fi
for natmod in features1 features3 features4 heapq re for natmod in deflate features1 features3 features4 framebuf heapq random re
do do
make -C examples/natmod/$natmod clean make -C examples/natmod/$natmod clean
make -C examples/natmod/$natmod ARCH=$arch make -C examples/natmod/$natmod ARCH=$arch
done 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 # features2 requires soft-float on armv7m, rv32imc, and xtensa. On armv6m
# the compiler generates absolute relocations in the object file # the compiler generates absolute relocations in the object file
# referencing soft-float functions, which is not supported at the moment. # 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 make -C examples/natmod/features2 ARCH=$arch
fi fi
# btree requires thread local storage support on rv32imc, whilst on xtensa # btree requires thread local storage support on rv32imc.
# it relies on symbols that are provided from ROM but not exposed to if [ $arch != "rv32imc" ]; then
# natmods at the moment.
if [ $arch != "rv32imc" ] && [ $arch != "xtensa" ]; then
make -C examples/natmod/btree clean make -C examples/natmod/btree clean
make -C examples/natmod/btree ARCH=$arch make -C examples/natmod/btree ARCH=$arch
fi fi