]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: build some file(s) as ARM mode only
authorDavid Müller (ELSOFT AG) <d.mueller@elsoft.ch>
Tue, 9 Feb 2016 15:48:30 +0000 (16:48 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 15 Feb 2016 17:04:46 +0000 (12:04 -0500)
Signed-off-by: David Müller <d.mueller@elsoft.ch>
arch/arm/cpu/arm920t/Makefile

index 6582938db0e417d79c2b24276919c5e631d63cdc..1832b9d148304e657fffbf3041d82937a150fbff 100644 (file)
@@ -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