summaryrefslogtreecommitdiff
path: root/package/gnuconfig
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2005-11-21 20:14:49 +0000
committerPaul Mundt <lethal@linux-sh.org>2005-11-21 20:14:49 +0000
commit48eb656e15a20a71c5df3d9c75e6eb5a10c42fcd (patch)
tree9be1cb2dc1024513b0738b9e5e7a634483de7ca7 /package/gnuconfig
parent30c484fdb10288540f41c4fc063eb7e30de3a637 (diff)
Add support for sh2a and sh4a big endian (ie, targets that reflect
hardware that actually exists -- never something to deter gcc folk though). Now ISA tuning has a chance of producing a bootable kernel, gcc code generation notwithstanding..
Diffstat (limited to 'package/gnuconfig')
-rwxr-xr-xpackage/gnuconfig/config.sub2
-rw-r--r--package/gnuconfig/patches/config.sub.sh.patch25
2 files changed, 26 insertions, 1 deletions
diff --git a/package/gnuconfig/config.sub b/package/gnuconfig/config.sub
index c6f90b077..579c52b62 100755
--- a/package/gnuconfig/config.sub
+++ b/package/gnuconfig/config.sub
@@ -264,7 +264,7 @@ case $basic_machine in
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b \
diff --git a/package/gnuconfig/patches/config.sub.sh.patch b/package/gnuconfig/patches/config.sub.sh.patch
new file mode 100644
index 000000000..c1ccf1440
--- /dev/null
+++ b/package/gnuconfig/patches/config.sub.sh.patch
@@ -0,0 +1,25 @@
+gnuconfig seems intent on only supporting superfluous targets that don't
+represent any real hardware (such as sh2a LE). GCC in its infinite wisdom is
+also incapable of supporting tuning for other variants in a sensible fashion.
+
+As such, we still need to be able to support such useful targets as
+sh2a_nofpueb in order to not only get the byte order right, but also to
+support -m2a-nofpu tuning from the kernel (though we tend to do this through
+-Wa,-isa= instead, as the binutils people do a much better job of not screwing
+up their config code every other day. Way to go config.gcc..).
+
+The fact that the sh variant matching is the ugliest out of any of the other
+architectures doesn't seem to deter GCC folk from their well thought out and
+brilliantly managed config target list.
+
+--- config.sub 2005-11-21 21:18:16.000000000 +0200
++++ config.sub 2005-11-21 21:39:48.000000000 +0200
+@@ -264,7 +264,7 @@
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
++ | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b \