Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/faad2: force arm mode instead of Thumb mode
@ 2024-01-26 17:32 Fabrice Fontaine
  2024-01-26 21:33 ` Peter Korsgaard
  2024-02-28 13:39 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-01-26 17:32 UTC (permalink / raw)
  To: buildroot; +Cc: Gilles Talis, Fabrice Fontaine

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 <fontaine.fabrice@gmail.com>
---
 package/faad2/faad2.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/faad2/faad2.mk b/package/faad2/faad2.mk
index 686e5045c0..0e66ebc8e1 100644
--- a/package/faad2/faad2.mk
+++ b/package/faad2/faad2.mk
@@ -12,4 +12,11 @@ FAAD2_CPE_ID_VENDOR = audiocoding
 FAAD2_CPE_ID_PRODUCT = freeware_advanced_audio_decoder_2
 FAAD2_INSTALL_STAGING = YES
 
+# faad2 has some assembly function that are not present in thumb1 mode:
+# Error: selected processor does not support `smull r2,r3,r1,r0' in Thumb mode
+# so, we desactivate thumb mode
+ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
+FAAD2_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
 $(eval $(cmake-package))
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/faad2: force arm mode instead of Thumb mode
  2024-01-26 17:32 [Buildroot] [PATCH 1/1] package/faad2: force arm mode instead of Thumb mode Fabrice Fontaine
@ 2024-01-26 21:33 ` Peter Korsgaard
  2024-02-28 13:39 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-01-26 21:33 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Gilles Talis, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > 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 <fontaine.fabrice@gmail.com>
 > ---
 >  package/faad2/faad2.mk | 7 +++++++
 >  1 file changed, 7 insertions(+)

 > diff --git a/package/faad2/faad2.mk b/package/faad2/faad2.mk
 > index 686e5045c0..0e66ebc8e1 100644
 > --- a/package/faad2/faad2.mk
 > +++ b/package/faad2/faad2.mk
 > @@ -12,4 +12,11 @@ FAAD2_CPE_ID_VENDOR = audiocoding
 >  FAAD2_CPE_ID_PRODUCT = freeware_advanced_audio_decoder_2
 >  FAAD2_INSTALL_STAGING = YES
 
 > +# faad2 has some assembly function that are not present in thumb1 mode:
 > +# Error: selected processor does not support `smull r2,r3,r1,r0' in Thumb mode
 > +# so, we desactivate thumb mode
 > +ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
 > +FAAD2_CONF_OPTS += -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -marm"
 > +endif

Committed after rewording this slightly, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/faad2: force arm mode instead of Thumb mode
  2024-01-26 17:32 [Buildroot] [PATCH 1/1] package/faad2: force arm mode instead of Thumb mode Fabrice Fontaine
  2024-01-26 21:33 ` Peter Korsgaard
@ 2024-02-28 13:39 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2024-02-28 13:39 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Gilles Talis, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > 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 <fontaine.fabrice@gmail.com>

Committed to 2023.02.x and 2023.11.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-28 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 17:32 [Buildroot] [PATCH 1/1] package/faad2: force arm mode instead of Thumb mode Fabrice Fontaine
2024-01-26 21:33 ` Peter Korsgaard
2024-02-28 13:39 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox