projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD
[oweals/u-boot.git]
/
arch
/
arm
/
mach-orion5x
/
Makefile
diff --git
a/arch/arm/mach-orion5x/Makefile
b/arch/arm/mach-orion5x/Makefile
index 546ebcb52e589a55c2c7f002323f8b7405fa5b83..33dcad40f26d4fb21e81742493950cbb2e084853 100644
(file)
--- a/
arch/arm/mach-orion5x/Makefile
+++ b/
arch/arm/mach-orion5x/Makefile
@@
-16,3
+16,13
@@
obj-y += timer.o
ifndef CONFIG_SKIP_LOWLEVEL_INIT
obj-y += lowlevel_init.o
endif
+
+# some files can only build in ARM or THUMB2, not THUMB1
+
+ifdef CONFIG_SYS_THUMB_BUILD
+ifndef CONFIG_HAS_THUMB2
+
+CFLAGS_cpu.o := -marm
+
+endif
+endif