diff mbox

[U-Boot,3/4] arm: build some file(s) as ARM mode only

Message ID 1455032911-29001-4-git-send-email-d.mueller@elsoft.ch
State Accepted
Commit 26275dae828068c02be5a2ef67eab70bddb75e8c
Delegated to: Tom Rini
Headers show

Commit Message

David Müller (ELSOFT AG) Feb. 9, 2016, 3:48 p.m. UTC
Signed-off-by: David Müller <d.mueller@elsoft.ch>
---
 arch/arm/cpu/arm920t/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Tom Rini Feb. 15, 2016, 10:35 p.m. UTC | #1
On Tue, Feb 09, 2016 at 04:48:30PM +0100, David Müller (ELSOFT AG) wrote:

> Signed-off-by: David Müller <d.mueller@elsoft.ch>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/arch/arm/cpu/arm920t/Makefile b/arch/arm/cpu/arm920t/Makefile
index 6582938..1832b9d 100644
--- a/arch/arm/cpu/arm920t/Makefile
+++ b/arch/arm/cpu/arm920t/Makefile
@@ -13,3 +13,9 @@  obj-$(CONFIG_USE_IRQ)	+= interrupts.o
 obj-$(CONFIG_EP93XX) += ep93xx/
 obj-$(CONFIG_IMX) += imx/
 obj-$(CONFIG_S3C24X0) += s3c24x0/
+
+# some files can only build in ARM mode
+
+ifdef CONFIG_SYS_THUMB_BUILD
+CFLAGS_cpu.o := -marm
+endif