aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2006-12-19 12:05:17 +0900
committerPaul Mundt <lethal@linux-sh.org>2007-02-13 10:54:43 +0900
commit702dd80375046d36f892a0f86c83f8549c623b35 (patch)
treea5b2114d64f00164ffce8591de7e266bb097e3ba /arch/sh/Makefile
parentf413d0d9fa7abcecc40e115cf4aead372d164a75 (diff)
downloadkernel_samsung_espresso10-702dd80375046d36f892a0f86c83f8549c623b35.zip
kernel_samsung_espresso10-702dd80375046d36f892a0f86c83f8549c623b35.tar.gz
kernel_samsung_espresso10-702dd80375046d36f892a0f86c83f8549c623b35.tar.bz2
sh: Use proper SH-2A CFLAGS on newer compilers.
-m2 doesn't end up working particularly well when we've got a constrained toolchain target. Switch to the same semantics used by SH-4A to attempt to get it right. Spotted by Alex Song <songqf9@yahoo.ca>. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r--arch/sh/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index c1dbef2..4903c7c 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -35,6 +35,7 @@ endif
endif
cflags-$(CONFIG_CPU_SH2) := -m2
+cflags-$(CONFIG_CPU_SH2A) := -m2a $(call cc-option,-m2a-nofpu,)
cflags-$(CONFIG_CPU_SH3) := -m3
cflags-$(CONFIG_CPU_SH4) := -m4 \
$(call cc-option,-mno-implicit-fp,-m4-nofpu)