[Buildroot] [PATCH] package/tremor: fix build with Thumb only ARM archs

Jörg Krause joerg.krause at embedded.rocks
Tue Nov 15 22:09:09 UTC 2016


On Tue, 2016-11-15 at 22:18 +0100, Arnout Vandecappelle wrote:
> 
> On 15-11-16 21:46, Jörg Krause wrote:
> > Some ARM architectures like ARNv7-M only supports Thumb
> > instructions,
> > but the tremor build configuration enables ARM assembly code
> > unconditionally for all arm triplets by defining _ARM_ASSEM_.
> > 
> > We are overriding this by undefining this macro for ARM
> > architectures
> > not supporting ARM instructions.
> > 
> > Fixes:
> > http://autobuild.buildroot.net/results/054/054f1c77b0e5d46b2dc53769
> > 469c0ed03e6b79ef/
> > http://autobuild.buildroot.net/results/ba1/ba1760b1428584f70e44dbff
> > b8218ff3ee55e702/
> > http://autobuild.buildroot.net/results/2a6/2a687853cf0bc832fef29f88
> > de0d85bd495fe87d/
> > http://autobuild.buildroot.net/results/cb6/cb6c560bf31834aadbe3d13a
> > 118b31ea8190159b/
> > 
> > Signed-off-by: Jörg Krause <joerg.krause at embedded.rocks>
> 
> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>

Many thanks for the review!

>  However, just to be sure, could you do a test with a toolchain for a
> cpu that
> does have ARM instructions, but is configured with
> BR2_ARM_INSTRUCTIONS_THUMB?

Tested successfully with BR2_cortex_a9 and BR2_ARM_CPU_HAS_THUMB2.

Best regards,
Jörg Krause



More information about the buildroot mailing list