package/faad2: force arm mode instead of Thumb mode
commit: https://git.buildroot.net/buildroot/commit/?id=a07d1795ff504441b4df2b390e1b4e79051618b7
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.11.x
Fix the following build failure in Thumb mode:
/tmp/ccfzn6FH.s:36: Error: selected processor does not support `smull r2,r3,r1,r0' in Thumb mode
Fixes:
- http://autobuild.buildroot.org/results/838808b4751244ee01cde6b8261212b49e511a32
Signed-off-by Fabrice Fontaine <[email protected]>
[Peter: reword comment slightly]
Signed-off-by Peter Korsgaard <[email protected]>
(cherry picked from commit a33827760823b1455326e0fc8cf6089a3081e782)
Signed-off-by Peter Korsgaard <[email protected]>
--- package/faad2/faad2.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/faad2/faad2.mk +7 -0
@@ -12,4 +12,11 @@ FAAD2_CPE_ID_VENDOR = audiocoding FAAD2_CPE_ID_PRODUCT = freeware_advanced_audio_decoder_2 FAAD2_INSTALL_STAGING = YES +# faad2 contains assembly routines using ARM instructions not present in thumb1 mode: +# Error: selected processor does not support `smull r2,r3,r1,r0' in Thumb mode +# so force ARM mode +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y) +FAAD2_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -marm" +endif + $(eval $(cmake-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot