summaryrefslogtreecommitdiff
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-01-15 11:00:45 +0900
committerTom Rini <trini@ti.com>2014-01-24 16:59:08 -0500
commitbf1af3d872831dd33fff223f007bbcf4e546f5b8 (patch)
treefaae79e0616b697d8873016ae8f04815997fb199 /arch/arm/config.mk
parent84acd1e1794cc86e8c13a2cd7b88cb199d3e526e (diff)
downloadu-boot-imx-bf1af3d872831dd33fff223f007bbcf4e546f5b8.zip
u-boot-imx-bf1af3d872831dd33fff223f007bbcf4e546f5b8.tar.gz
u-boot-imx-bf1af3d872831dd33fff223f007bbcf4e546f5b8.tar.bz2
ARM: merge commonly-defined PLATFORM_RELFLAGS
Before this commit, all arch/arm/cpu/${CPU}/config.mk except ARMv8 had the same option: $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) This commit moves it into arch/arm/config.mk. If the compiler does not support the option, it is ignored by $(call cc-option,...). So this commit gives no harm to ARMv8. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r--arch/arm/config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index cfa4209..98c1253 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -18,7 +18,8 @@ endif
LDFLAGS_FINAL += --gc-sections
PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections \
-fno-common -ffixed-r9
-PLATFORM_RELFLAGS += $(call cc-option, -msoft-float)
+PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
+ $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
# Support generic board on ARM
__HAVE_ARCH_GENERIC_BOARD := y