From: Albert ARIBAUD Date: Tue, 20 Oct 2015 13:31:41 +0200 Subject: [U-Boot] [PATCH v6 4/5] kirkwood: support CONFIG_SYS_THUMB_BUILD In-Reply-To: <1445340702-32248-1-git-send-email-albert.u.boot@aribaud.net> References: <1445340702-32248-1-git-send-email-albert.u.boot@aribaud.net> Message-ID: <1445340702-32248-5-git-send-email-albert.u.boot@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Kirkwood files cpu.c and cache.c cannot build in Thumb state; force them in ARM state even under CONFIG_SYS_THUMB_BUILD. Signed-off-by: Albert ARIBAUD --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-kirkwood/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile index df4756e..5abcf70 100644 --- a/arch/arm/mach-kirkwood/Makefile +++ b/arch/arm/mach-kirkwood/Makefile @@ -9,3 +9,9 @@ obj-y = cpu.o obj-y += cache.o obj-y += mpp.o + +# cpu.o and cache.o contain CP15 instructions which cannot be run in +# Thumb state, so build them for ARM state even with CONFIG_SYS_THUMB_BUILD + +CFLAGS_cpu.o := -marm +CFLAGS_cache.o := -marm -- 2.1.4