Skip to contentSkip to conversation

tremor: force ARM mode when building to avoid Thumb2 build problems

PATCH New Thomas Petazzoni 2 participants 3 messages Nov 10, 2012 – Nov 15, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tremor: force ARM mode when building to avoid Thumb2 build problems

Fixes:

http://autobuild.buildroot.org/results/502b7d3f29d7982d56de2ae4a0b943315e04713b/build-end.log

---
 package/tremor/tremor.mk |    7 +++++++
 1 file changed, 7 insertions(+)
package/tremor/tremor.mk +7 -0
index fceee1b..cd1d323 100644
@@ -12,4 +12,11 @@ TREMOR_AUTORECONF = YES
 TREMOR_INSTALL_STAGING = YES
 TREMOR_DEPENDENCIES = libogg
 
+# tremor has ARM assembly code that cannot be compiled in Thumb2 mode,
+# so we must force the traditional ARM mode.
+ifeq ($(BR2_arm),y)
+TREMOR_CONF_ENV = \
+	CFLAGS="$(TARGET_CFLAGS) -marm"
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 tremor: force ARM mode when building to avoid Thumb2 build problems

Quoted 8 lines · Thomas Petazzoni

Fixes:

http://autobuild.buildroot.org/results/502b7d3f29d7982d56de2ae4a0b943315e04713b/build-end.log

---
 package/tremor/tremor.mk |    7 +++++++
 1 file changed, 7 insertions(+)

This one should be applied for 2012.11.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com