Skip to contentSkip to conversation

package/binutils: extend the 2.28 default to thumb mode

PATCH New Yann E. MORIN 2 participants 3 messages Jun 1, 2018 – Jun 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/binutils: extend the 2.28 default to thumb mode

Commit 17f352ac (package/binutils: default to 2.29 for Cortex-M targets) made the default version 2.28 (and not 2.29!) when the target is an arm-v7m CPU.

However, the real trigger is compilation in Thumb mode, not the fact that the target is v7m.

The fact that it was noticed on a v7m target is because Thumb is the only mode valid on those CPUs.

Tighten the defaults to 2.28 for Thumb and Thumb2 modes.

Cc Laurent GONZALEZ <[email protected]>
Cc Christophe Priouzeau <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Arnout Vandecappelle <[email protected]>
---
 package/binutils/Config.in.host | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/binutils/Config.in.host +2 -1
index 4e578ef2ef..de229895c1 100644
@@ -2,7 +2,8 @@ comment "Binutils Options"
 
 choice
 	prompt "Binutils Version"
-	default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_CPU_ARMV7M
+	default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_INSTRUCTIONS_THUMB
+	default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_INSTRUCTIONS_THUMB2
 	default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc
 	default BR2_BINUTILS_VERSION_ARC if BR2_arc
 	help
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 package/binutils: extend the 2.28 default to thumb mode

Quoted 29 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Commit 17f352ac (package/binutils: default to 2.29 for Cortex-M targets) made the default version 2.28 (and not 2.29!) when the target is an arm-v7m CPU.

However, the real trigger is compilation in Thumb mode, not the fact that the target is v7m.

The fact that it was noticed on a v7m target is because Thumb is the only mode valid on those CPUs.

Tighten the defaults to 2.28 for Thumb and Thumb2 modes.

Cc Laurent GONZALEZ <[email protected]>
Cc Christophe Priouzeau <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Arnout Vandecappelle <[email protected]>
---
 package/binutils/Config.in.host | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/binutils/Config.in.host +0 -0
index 4e578ef2ef..de229895c1 100644

package/binutils/Config.in.host comment "Binutils Options" · line 9

Quoted 9 lines
package/binutils/Config.in.host +2 -1
@@ -2,7 +2,8 @@ comment "Binutils Options"
 
 choice
 	prompt "Binutils Version"
-	default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_CPU_ARMV7M
+	default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_INSTRUCTIONS_THUMB
+	default BR2_BINUTILS_VERSION_2_28_X if BR2_ARM_INSTRUCTIONS_THUMB2
 	default BR2_BINUTILS_VERSION_2_29_X if !BR2_arc
 	default BR2_BINUTILS_VERSION_ARC if BR2_arc
 	help

Committed, thanks. Will you also send a patch to update the comment in linux/Config.in?

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/binutils: extend the 2.28 default to thumb mode

In reply to Yann E. MORIN
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Commit 17f352ac (package/binutils: default to 2.29 for Cortex-M targets) made the default version 2.28 (and not 2.29!) when the target is an arm-v7m CPU.

However, the real trigger is compilation in Thumb mode, not the fact that the target is v7m.

The fact that it was noticed on a v7m target is because Thumb is the only mode valid on those CPUs.

Quoted 8 lines

Tighten the defaults to 2.28 for Thumb and Thumb2 modes.

Cc Laurent GONZALEZ <[email protected]>
Cc Christophe Priouzeau <[email protected]>
Cc Peter Korsgaard <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc Arnout Vandecappelle <[email protected]>

Committed to 2018.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard