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

Re: [MiNT] NOCFLAGS $(MODEL)



Alan Hourihane wrote:
Since I'm currently patching the FreeMiNT sources for ColdFire using the
right way, this is another reason to get rid of that NOCFLAGS abomination.

Yes. Go for it.

Here is the patch. It is only for the kernel itself. I will post similar patches for the other components after they are cleanly patched for ColdFire.

The resulting kernels should be theoretically a bit faster, but I believe this will be unnoticeable.

I have made a very minimal test: the ColdFire and ARAnyM kernels are still able to run MiS correctly. I hope other things are OK.

Alan, please commit.

- nocflags.patch
Compile all the C files using the same CPU option. Contributed by Vincent Riviere.

--
Vincent Rivière
diff -x CVS -aurN freemint.orig/sys/Makefile.objs freemint/sys/Makefile.objs
--- freemint.orig/sys/Makefile.objs	2011-03-13 09:46:55.203125000 +0100
+++ freemint/sys/Makefile.objs	2011-03-23 22:39:44.359375000 +0100
@@ -45,41 +45,6 @@
 NOCFLAGS-profil.c = -pg
 NOCFLAGS-update.c = -pg
 
-NOCFLAGS-bios.c = $(MODEL)
-CFLAGS-bios.c = -m68000
-NOCFLAGS-biosfs.c = $(MODEL)
-CFLAGS-biosfs.c = -m68000
-NOCFLAGS-dos.c = $(MODEL)
-CFLAGS-dos.c = -m68000
-NOCFLAGS-dosfile.c = $(MODEL)
-CFLAGS-dosfile.c = -m68000
-NOCFLAGS-fatfs.c = $(MODEL)
-CFLAGS-fatfs.c = -m68000
-NOCFLAGS-k_exec.c = $(MODEL)
-CFLAGS-k_exec.c = -m68000
-NOCFLAGS-k_exit.c = $(MODEL)
-CFLAGS-k_exit.c = -m68000
-NOCFLAGS-k_fork.c = $(MODEL)
-CFLAGS-k_fork.c = -m68000
-NOCFLAGS-module.c = $(MODEL)
-CFLAGS-module.c = -m68000
-NOCFLAGS-proc.c = $(MODEL)
-CFLAGS-proc.c = -m68000
-NOCFLAGS-procfs.c = $(MODEL)
-CFLAGS-procfs.c = -m68000
-NOCFLAGS-ptrace.c = $(MODEL)
-CFLAGS-ptrace.c = -m68000
-NOCFLAGS-random.c = $(MODEL)
-CFLAGS-random.c = -m68000
-NOCFLAGS-rendez.c = $(MODEL)
-CFLAGS-rendez.c = -m68000
-NOCFLAGS-signal.c = $(MODEL)
-CFLAGS-signal.c = -m68000
-NOCFLAGS-timeout.c = $(MODEL)
-CFLAGS-timeout.c = -m68000
-NOCFLAGS-xbios.c = $(MODEL)
-CFLAGS-xbios.c = -m68000
-
 cflags = $(kernel_cflags)
 nocflags = $(kernel_nocflags)
 
diff -x CVS -aurN freemint.orig/sys/arch/Makefile.objs freemint/sys/arch/Makefile.objs
--- freemint.orig/sys/arch/Makefile.objs	2008-01-22 14:47:46.000000000 +0100
+++ freemint/sys/arch/Makefile.objs	2011-03-23 22:38:22.328125000 +0100
@@ -59,15 +59,6 @@
 endif
 CFLAGS-kernel.S = -m68000
 
-NOCFLAGS-mprot030.c = $(MODEL)
-NOCFLAGS-mprot040.c = $(MODEL)
-CFLAGS-mprot030.c = -m68030
-CFLAGS-mprot040.c = -m68060
-NOCFLAGS-init_intr.c = $(MODEL)
-CFLAGS-init_intr.c = -m68000
-NOCFLAGS-sig_mach.c = $(MODEL)
-CFLAGS-sig_mach.c = -m68000
-
 cflags = $(kernel_cflags)
 nocflags = $(kernel_nocflags)
 
diff -x CVS -aurN freemint.orig/sys/libkern/Makefile.objs freemint/sys/libkern/Makefile.objs
--- freemint.orig/sys/libkern/Makefile.objs	2008-01-22 14:47:46.000000000 +0100
+++ freemint/sys/libkern/Makefile.objs	2011-03-23 22:38:52.578125000 +0100
@@ -17,9 +17,6 @@
 
 all-here: objs
 
-NOCFLAGS-md5.c = $(MODEL)
-CFLAGS-md5.c = -m68000
-
 # default overwrites
 DEFINITIONS = -D__KERNEL__