]> git.sur5r.net Git - u-boot/commit
arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 23 Oct 2015 16:06:40 +0000 (18:06 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 10 Nov 2015 14:03:48 +0000 (15:03 +0100)
commit62e92077a8936e60087d55683538ee386cc673aa
tree98bf9f9796ab466ad1bff97c7672d5c3159526d3
parentbf104ffa2594e5bf14ef2d5ac2711084c763ef77
arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD

When building a Thumb-1-only target with CONFIG_SYS_THUMB_BUILD,
some files fail to build, most of the time because they include
mcr instructions, which only exist for Thumb-2.

This patch introduces a Kconfig option CONFIG_THUMB2 and uses
it to select between Thumb-2 and ARM mode for the aforementioned
files.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
12 files changed:
Makefile
arch/arm/Kconfig
arch/arm/cpu/arm926ejs/Makefile
arch/arm/cpu/arm926ejs/cache.c
arch/arm/include/asm/cache.h
arch/arm/lib/Makefile
arch/arm/lib/cache.c
arch/arm/lib/memcpy.S
arch/arm/lib/memset.S
arch/arm/mach-orion5x/Makefile
arch/arm/thumb1/include/asm/proc-armv/system.h [new file with mode: 0644]
examples/standalone/Makefile