Skip to content

Commit 28ce4d8

Browse files
committed
test: bluetooth: tester: disable optimizations for native_sim
TF-PSA-Crypto's bignum module includes some assembly optimization for x86, x86_64 and ARM64 platforms. When building for "native_sim/native" on a 64 bit platform the compiler tries to set 32 bit compatibility mode, but of course assembly functions between 32 and 64 bits architectures don't match and therefore the build fails. Disabling optimizations prevents TF-PSA-Crypto from trying to use assembly and the test passes. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
1 parent cb39821 commit 28ce4d8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎tests/bluetooth/tester/boards/native_sim.conf‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@ CONFIG_UART_PIPE=n
22
CONFIG_SERIAL=y
33
CONFIG_UART_NATIVE_PTY=y
44
CONFIG_ASAN=y
5+
# Remove optimization otherwise the build will fail when building on 64 bits
6+
# platforms. Reason: TF-PSA-Crypto includes some assembly optimizations in bignum
7+
# module. When building for "native_sim/native" the compiler tries to build
8+
# with 32 bit compatible mode, but assembly function doesn't match and the build
9+
# just fails.
10+
CONFIG_NO_OPTIMIZATIONS=y

0 commit comments

Comments
 (0)