Hello,
Today I tried building the latest CVS kernel with a full GNU CVS
toolchain, unpatched (yes, I _am_ completely crazy). Everything built OK
except for sh-sci.c,
which expects __sh3__ to be defined only for SH3 CPUs. However, the new
toolchain seems to define __sh3__ even for the SH4 (maybe the old gcc in
LinuxSH CVS does also? I don't remember). Anyway to get vmlinux to
build, I modified the sh-sci.c pre-processor logic to use CONFIG_CPU
instead... here's the patch if anyone else is having this problem:
--- sh-sci-orig.c Tue Feb 13 23:12:16 2001
+++ sh-sci.c Tue Feb 13 23:05:45 2001
@@ -226,7 +226,7 @@
#endif
#if defined(SCIF_ONLY) || defined(SCI_AND_SCIF)
-#if defined(__sh3__)
+#if !defined(CONFIG_CPU_SUBTYPE_SH7750)
/* For SH7707, SH7709, SH7709A, SH7729 */
static void sci_init_pins_scif(struct sci_port* port, unsigned int
cflag)
{
I'm not sure if this should go into main CVS or not. NIIBE-san, what do
you think?
Regards,
Bryan
--
Bryan Rittmeyer
mailto:br...@ix...
Ixia Communications
26601 W. Agoura Rd.
Calabasas, CA 91302
|