[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNTLib for ColdFire



Frank, thanks for your previous commit.

Here is an additional tiny patch for ColdFire V4e compilation. It appears that the -mcfv4e compiler option is deprecated, and should be replaced by -mcpu=5475 while compiling. Furthermore, the multilib directory should be named m5475 instead of mcfv4e. I found that information in the GCC sources, for example things are like this on the m68k-elf target (unrelated to MiNT). So let's keep as close as possible to other standard targets. The 5475 processor is the official representative of the V4e family.

I'm sorry for providing so much patches, but I prefer to go forward step by step in order to avoid mistakes. Good news is that now all the libs can be compiled for ColdFire, everything will be over after the CRT patches.

Thank you for your patience.
Could someone commit this patch, please ?

--
Vincent Rivière
diff -aurN -x CVS mintlib.orig/libinstall mintlib/libinstall
--- mintlib.orig/libinstall	2009-05-07 11:05:40.000000000 +0200
+++ mintlib/libinstall	2009-05-28 23:10:32.578125000 +0200
@@ -287,7 +287,7 @@
         ;;
       xv4e)
         libsuffix=v4e
-        libinstdir=$libdir/mcfv4e
+        libinstdir=$libdir/m5475
         libheredir=libv4e
         type=
         ;;
diff -aurN -x CVS mintlib.orig/libv4e/Makefile mintlib/libv4e/Makefile
--- mintlib.orig/libv4e/Makefile	2009-05-07 11:07:26.000000000 +0200
+++ mintlib/libv4e/Makefile	2009-05-24 21:04:03.562500000 +0200
@@ -15,8 +15,8 @@
 subdir = libv4e
 
 libsize = v4e
-instdir = mcfv4e
-cflags = -mcfv4e
+instdir = m5475
+cflags = -mcpu=5475
 
 default: all
 
diff -aurN -x CVS mintlib.orig/libv4e/README mintlib/libv4e/README
--- mintlib.orig/libv4e/README	2009-05-07 11:07:26.000000000 +0200
+++ mintlib/libv4e/README	2009-05-28 23:09:59.734375000 +0200
@@ -1,4 +1,4 @@
 This directory contains the libs for the ColdFire V4e from the MiNTLib suite.
 
-Please install them in $prefix/lib/mcfv4e where $prefix is either /usr
+Please install them in $prefix/lib/m5475 where $prefix is either /usr
 or /usr/local.