[Buildroot] [PATCHv2] linux: may fail to boot for binutils 2.29+ even without armv7m

Peter Korsgaard peter at korsgaard.com
Fri Jun 8 14:22:22 UTC 2018


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

Hi,

 > But as you can see in the commit log that introduced this change, what
 > you suggest is not correct, because it is also very valid that you have
 > a arm-mode userland running on a thumb-mode kernel (as Peter initially
 > pointed out on IRC).

 > So, the kernel warning should not be about he userland mode.

 > And 'BR2_ARM_INSTRUCTIONS_THUMB || BR2_ARM_INSTRUCTIONS_THUMB2'
 > represent the userland mode, while we have, from our kconfig, no way to
 > know the kernel mode, because that is in the kernel .config file, which
 > we only get late.

 > As such, the only way is to depend on arm || armeb.

Or alternatively on

BR2_ARM_CPU_HAS_THUMB || BR2_ARM_CPU_HAS_THUMB2

But ok, either of those are true for most ARM cores.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list