summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-08-13 20:08:30 +0000
committerEric Andersen <andersen@codepoet.org>2003-08-13 20:08:30 +0000
commit533d76fbc420a8cdca389dbea0d86eb64e0e8096 (patch)
tree122e91e59f3b0d1b346a30c2b90320980db0935d /Rules.mak
parentae3cf778c3155c085468fe72a47ddd696a1b5a00 (diff)
Patch from Paul Mundt adding uClibc sh64 support:
Here's a patch that implements the beginnings of a rudimentary sh64 port. So far, this only works static, as I haven't done any of the ldso work yet. I've also not touched the libpthread stuff yet either, so that's also disabled for now. This port was based off of some work that Sean McGoogan at SuperH did for his initial port, but the this patch doesn't carry over too much from there (basically the libc/sysdeps/linux/sh64/Makefile (or rather, parts of it), the setjmp/longjmp stuff (which I had to rewrite portions of it to work with the new toolchains), etc.). However, for static, everything appears to work correcly, at least in a hello world type application.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak10
1 files changed, 9 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index a3cd1f2ba..3b162addf 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -146,7 +146,15 @@ ifeq ($(strip $(TARGET_ARCH)),sh)
CPU_CFLAGS-$(CONFIG_SH2)+="-m2"
CPU_CFLAGS-$(CONFIG_SH3)+="-m3"
CPU_CFLAGS-$(CONFIG_SH4)+="-m4"
- CPU_CFLAGS-$(CONFIG_SH5)+="-m5"
+endif
+
+ifeq ($(strip $(TARGET_ARCH)),sh64)
+ OPTIMIZATION+=-fstrict-aliasing
+ CPU_LDFLAGS-$(ARCH_LITTLE_ENDIAN):="-EL"
+ CPU_LDFLAGS-$(ARCH_BIG_ENDIAN):="-EB"
+ CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN):="-ml"
+ CPU_CFLAGS-$(ARCH_BIG_ENDIAN):="-mb"
+ CPU_CFLAGS-$(CONFIG_SH5)+="-m5-32media"
endif
ifeq ($(strip $(TARGET_ARCH)),h8300)