Skip to contentSkip to conversation

libmad: disable ASO support for thumb-only ARM cores

PATCH New Peter Korsgaard 2 participants 3 messages Jan 7, 2017 – Jan 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libmad: disable ASO support for thumb-only ARM cores

Fixes:
http://autobuild.buildroot.net/results/8d4/8d4ea8613487297f2c33f3b9cbd8903cfb96e4c6/

The ARM specific optimizations enabled by LIBMAD_ASO needs classic ARM instructions support, so disable for thumb-only cores.

---
 package/libmad/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/libmad/Config.in +2 -1
index 7d66976c1..2f7543f74 100644
@@ -37,7 +37,8 @@ config BR2_PACKAGE_LIBMAD_SSO
 
 config BR2_PACKAGE_LIBMAD_ASO
 	bool "Architecture-specific optimizations"
-	default y
+	# arm optimization needs classic arm instructions support
+	depends on !(BR2_arm && !BR2_ARM_CPU_HAS_ARM)
 	help
 	  Use certain architecture-specific optimizations.
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 libmad: disable ASO support for thumb-only ARM cores

Hi Peter,

Quoted 16 lines · Peter Korsgaard

Fixes:
http://autobuild.buildroot.net/results/8d4/8d4ea8613487297f2c33f3b9cbd8903cfb96e4c6/

The ARM specific optimizations enabled by LIBMAD_ASO needs classic ARM instructions support, so disable for thumb-only cores.

---
 package/libmad/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/libmad/Config.in +0 -0
index 7d66976c1..2f7543f74 100644

package/libmad/Config.in config BR2_PACKAGE_LIBMAD_SSO · line 40

Quoted 4 lines
package/libmad/Config.in +0 -1
@@ -37,7 +37,8 @@ config BR2_PACKAGE_LIBMAD_SSO
 
 config BR2_PACKAGE_LIBMAD_ASO
 	bool "Architecture-specific optimizations"
-	default y

Why is this change needed? Isn't the added dependency enough?

package/libmad/Config.in config BR2_PACKAGE_LIBMAD_SSO · line 43

Quoted 4 lines
package/libmad/Config.in +2 -0
+	# arm optimization needs classic arm instructions support
+	depends on !(BR2_arm && !BR2_ARM_CPU_HAS_ARM)
 	help
 	  Use certain architecture-specific optimizations.

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 libmad: disable ASO support for thumb-only ARM cores

Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

Hi Peter,

Quoted 17 lines · Peter Korsgaard

Fixes:
http://autobuild.buildroot.net/results/8d4/8d4ea8613487297f2c33f3b9cbd8903cfb96e4c6/

The ARM specific optimizations enabled by LIBMAD_ASO needs classic ARM instructions support, so disable for thumb-only cores.

---
package/libmad/Config.in | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)
package/libmad/Config.in +0 -0
index 7d66976c1..2f7543f74 100644
@@ -37,7 +37,8 @@ config BR2_PACKAGE_LIBMAD_SSO
 
Quoted 5 lines

package/libmad/Config.in config BR2_PACKAGE_LIBMAD_SSO · line 40

Quoted 3 lines

config BR2_PACKAGE_LIBMAD_ASO
bool "Architecture-specific optimizations"

package/libmad/Config.in +0 -1
-	default y

Why is this change needed? Isn't the added dependency enough?

You're right, I didn't mean to remove this. I'll fix that up while applying - Thanks!

Signature · 1 line
Bye, Peter Korsgaard