X-Git-Url: http://rtime.felk.cvut.cz/gitweb/mcf548x/linux.git/blobdiff_plain/698a4555a5744245272c7d7eea04068a57c18914..db6f0eeb987ccb6db01d0ea318700368c26be7bf:/arch/m68k/Makefile diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile index b06a7e3cbcd6..05a67bca4a4e 100644 --- a/arch/m68k/Makefile +++ b/arch/m68k/Makefile @@ -16,7 +16,10 @@ 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