From 508bfabe83b30571956b4293a59bf4447d5c18a6 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Wed, 3 Dec 2025 21:41:47 +0200 Subject: [PATCH] Disable Thumb code generation in codecs for ARM profile 65 It seems that there are a couple of codecs that use assembly optimizations. Some of their instruction sequences are not valid Thumb code. To be able to compile them successfully on TI OMAP4430, ARM mode is forced on the codecs. Change-Id: I932186177b540985e37cb3a5333943572da1c60a --- tools/configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/configure b/tools/configure index 7394ab81a9..78551d1649 100755 --- a/tools/configure +++ b/tools/configure @@ -4939,6 +4939,19 @@ if [ -z "$arch" ]; then GCCOPTS="$GCCOPTS -masm-syntax-unified" fi case "$arch_profile" in + 65) + arch_profile=application + + # Disable generation of Thumb code, since some codecs use + # instructions that can only be assembled to ARM code + GCCOPTS="$GCCOPTS -marm" + + # Make sure Thumb does not get enabled by the command-line option + if [ "$ARG_ARM_THUMB" = "1" ]; then + echo "Warning: --thumb option has no effect on ARM A profile cores" + ARG_ARM_THUMB=0 + fi + ;; 77) arch_profile=micro @@ -5061,6 +5074,7 @@ cat > autoconf.h.new <