]> rtime.felk.cvut.cz Git - mcf548x/linux.git/blobdiff - arch/m68k/Makefile
Current (FEC from 2.6.31 port, no CAN, no I2C, no PCI)
[mcf548x/linux.git] / arch / m68k / Makefile
index b06a7e3cbcd6491de55c409e9516a1d68d6ed527..05a67bca4a4e2cf729bd6f2778f0ed735c2f8098 100644 (file)
 KBUILD_DEFCONFIG := multi_defconfig
 
 # override top level makefile
+ifndef CONFIG_COLDFIRE 
 AS += -m68020
+endif 
+
 LDFLAGS := -m m68kelf
 KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/m68k/kernel/module.lds
 ifneq ($(SUBARCH),$(ARCH))
@@ -36,6 +39,7 @@ CHECKFLAGS += -D__mc68000__
 KBUILD_CFLAGS += -pipe -fno-strength-reduce -ffixed-a2
 
 # enable processor switch if compiled only for a single cpu
+ifndef CONFIG_COLDFIRE
 ifndef CONFIG_M68020
 ifndef CONFIG_M68030
 
@@ -49,6 +53,17 @@ endif
 
 endif
 endif
+endif
+
+ifdef CONFIG_M5445X
+KBUILD_CFLAGS += -march=isac -mcpu=54455 -msoft-float -g
+KBUILD_AFLAGS += -march=isac -mcpu=54455 -msoft-float  
+endif
+
+ifdef CONFIG_M547X_8X
+KBUILD_CFLAGS += -mcfv4e -g
+KBUILD_AFLAGS += -mcfv4e
+endif
 
 ifdef CONFIG_KGDB
 # If configured for kgdb support, include debugging infos and keep the
@@ -56,10 +71,12 @@ ifdef CONFIG_KGDB
 KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g
 endif
 
-ifndef CONFIG_SUN3
-head-y := arch/m68k/kernel/head.o
-else
+ifdef CONFIG_SUN3
 head-y := arch/m68k/kernel/sun3-head.o
+else ifdef CONFIG_COLDFIRE
+head-y := arch/m68k/kernel/cf-head.o
+else
+head-y := arch/m68k/kernel/head.o
 endif
 
 core-y                         += arch/m68k/kernel/    arch/m68k/mm/
@@ -79,6 +96,7 @@ core-$(CONFIG_SUN3)           += arch/m68k/sun3/      arch/m68k/sun3/prom/
 core-$(CONFIG_M68040)          += arch/m68k/fpsp040/
 core-$(CONFIG_M68060)          += arch/m68k/ifpsp060/
 core-$(CONFIG_M68KFPU_EMU)     += arch/m68k/math-emu/
+core-$(CONFIG_COLDFIRE)         += arch/m68k/coldfire/
 
 all:   zImage