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

Re: [MiNT] FreeMiNT for ColdFire



Here are the ColdFire patches for xaloader.prg.

To build the ColdFire xaloader.prg, use:
cd freemint/xaaes/src.km/xaloader
make CPU=v4e

Currently, this is not automatically done by the global makefile, but the whole make process will have to be reworked some day.

With this patch, the ColdFire xaloader.prg always runs xaaesv4e.km, regardless to the cookies. That should be fine for everyone.

If everything is OK, Alan, please commit!

Added ColdFire support. Contributed by Vincent Riviere.

--
Vincent Rivière
diff -x CVS -aurN freemint.orig/xaaes/src.km/xaloader/Makefile freemint/xaaes/src.km/xaloader/Makefile
--- freemint.orig/xaaes/src.km/xaloader/Makefile	2004-07-05 01:18:13.000000000 +0200
+++ freemint/xaaes/src.km/xaloader/Makefile	2011-04-02 17:04:38.890625000 +0200
@@ -19,7 +19,7 @@
 all-here: $(TARGET)
 
 # default overwrites
-LD = $(CC) -nostdlib -Wl,--entry -Wl,__start
+LD = $(CC) $(CFLAGS) -nostdlib -Wl,--entry -Wl,__start
 LIBS = -lgcc
 CPU = 000
 STRIPFLAGS =
diff -x CVS -aurN freemint.orig/xaaes/src.km/xaloader/xaloader.c freemint/xaaes/src.km/xaloader/xaloader.c
--- freemint.orig/xaaes/src.km/xaloader/xaloader.c	2011-05-02 20:44:06.468750000 +0200
+++ freemint/xaaes/src.km/xaloader/xaloader.c	2011-05-03 23:04:03.531250000 +0200
@@ -187,6 +187,9 @@
 	}
 	else
 	{
+#ifdef __mcoldfire__
+		name = "xaaesv4e.km";
+#else
 		long cpu;
 
 		name = DEFAULT;
@@ -214,6 +217,7 @@
 		}
 		else
 			ConsoleWrite("CPU-cookie not found \r\n");
+#endif
 	}
 	ConsoleWrite(name);
 	ConsoleWrite("\r\n");