summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2005-05-02 13:21:50 +0000
committerPaul Mundt <lethal@linux-sh.org>2005-05-02 13:21:50 +0000
commite8a91ad371ce69db303c27e46e25c6f12fc3cfdf (patch)
treeef340fb7e052b6d8024da8329564c1b851e95833 /Rules.mak
parent51d16a55069c65229522a2244697341018f4d17e (diff)
Add sh2a support.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak6
1 files changed, 6 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index b168b9251..79e0c13b0 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -167,7 +167,13 @@ ifeq ($(strip $(TARGET_ARCH)),sh)
CPU_CFLAGS-$(ARCH_BIG_ENDIAN)+=-mb
CPU_CFLAGS-$(CONFIG_SH2)+=-m2
CPU_CFLAGS-$(CONFIG_SH3)+=-m3
+ifeq ($(strip $(UCLIBC_HAS_FLOATS)),y)
+ CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a
CPU_CFLAGS-$(CONFIG_SH4)+=-m4
+else
+ CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a-nofpu
+ CPU_CFLAGS-$(CONFIG_SH4)+=-m4-nofpu
+endif
endif
ifeq ($(strip $(TARGET_ARCH)),sh64)