diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-08-13 20:08:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-08-13 20:08:30 +0000 |
commit | 533d76fbc420a8cdca389dbea0d86eb64e0e8096 (patch) | |
tree | 122e91e59f3b0d1b346a30c2b90320980db0935d /Rules.mak | |
parent | ae3cf778c3155c085468fe72a47ddd696a1b5a00 (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.mak | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) |