diff options
Diffstat (limited to 'arch/m68k/Makefile')
-rw-r--r-- | arch/m68k/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile index 9cd2d1838..cb60ea268 100644 --- a/arch/m68k/Makefile +++ b/arch/m68k/Makefile @@ -29,14 +29,21 @@ LINKFLAGS = -T $(TOPDIR)/arch/m68k/vmlinux.lds # without -fno-strength-reduce the 53c7xx.c driver fails ;-( CFLAGS += -pipe -fno-strength-reduce -ffixed-a2 -ifdef CONFIG_OPTIMIZE_040 +# enable processor switch if compiled only for a single cpu +ifndef CONFIG_M68020 +ifndef CONFIG_M68030 + +ifndef CONFIG_M68060 CFLAGS := $(CFLAGS) -m68040 endif -ifdef CONFIG_OPTIMIZE_060 +ifndef CONFIG_M68040 CFLAGS := $(CFLAGS) -m68060 endif +endif +endif + ifdef CONFIG_KGDB # If configured for kgdb support, include debugging infos and keep the # frame pointer @@ -116,6 +123,7 @@ endif archclean: rm -f vmlinux.gz + rm -f arch/m68k/kernel/m68k_defs.h arch/m68k/kernel/m68k_defs.d archmrproper: |