uclibc: add patches to simplify Thumb handling
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 18 Mar 2016 21:08:06 +0000 (22:08 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 29 Mar 2016 22:14:48 +0000 (00:14 +0200)
commit15a2901d369f7f0087cdc7386ffd43ed28bb9c71
treee5375d4291ff2b59232a159fbfe92a1525afe264
parent39be6f6bdad6b77a7540f6c9f299e02726b4a469
uclibc: add patches to simplify Thumb handling

This commit adds a number of patches to uClibc that radically
simplifies the Thumb handling. uClibc currently has three options that
you need to toggle on Thumb configurations depending on the specific
ARM CPU being targeted.

However, it turns out that none of those options are necessary:

 - USE_BX can simply be guessed by looking at the ARM core being
   used. The bx instruction is available for all ARM cores >=
   ARMv4T. This is exactly what glibc is doing.

 - USE_LDREXSTREX can also be guessed by looking at the ARM core being
   used: whenever you have Thumb2, ldrex/strex is available.

 - COMPILE_IN_THUMB becomes useless, since all it does is passing
   -mthumb. But just like the uClibc config options to set
   --march=<foo> have been removed a long time ago, there's no need to
   -have an option to pass -mthumb.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/uclibc/0001-arm-remove-use-of-USE_BX-option.patch [new file with mode: 0644]
package/uclibc/0002-arm-remove-USE_BX-option.patch [new file with mode: 0644]
package/uclibc/0003-arm-remove-use-of-USE_LDREXSTREX.patch [new file with mode: 0644]
package/uclibc/0004-arm-remove-USE_LDREXSTREX.patch [new file with mode: 0644]
package/uclibc/0005-arm-remove-COMPILE_IN_THUMB.patch [new file with mode: 0644]