diff options
| -rw-r--r-- | arch/m68k/Makefile | 168 | ||||
| -rw-r--r-- | arch/m68k/Makefile_mm | 121 | ||||
| -rw-r--r-- | arch/m68k/Makefile_no | 124 | ||||
| -rw-r--r-- | arch/m68k/platform/68328/Makefile | 5 | ||||
| -rw-r--r-- | arch/m68k/platform/68360/Makefile | 6 |
5 files changed, 174 insertions, 250 deletions
diff --git a/arch/m68k/Makefile b/arch/m68k/Makefile index be46cadd4017..cf318f20c64d 100644 --- a/arch/m68k/Makefile +++ b/arch/m68k/Makefile | |||
| @@ -1,7 +1,171 @@ | |||
| 1 | # | ||
| 2 | # m68k/Makefile | ||
| 3 | # | ||
| 4 | # This file is included by the global makefile so that you can add your own | ||
| 5 | # architecture-specific flags and dependencies. Remember to do have actions | ||
| 6 | # for "archclean" and "archdep" for cleaning up and making dependencies for | ||
| 7 | # this architecture | ||
| 8 | # | ||
| 9 | # This file is subject to the terms and conditions of the GNU General Public | ||
| 10 | # License. See the file "COPYING" in the main directory of this archive | ||
| 11 | # for more details. | ||
| 12 | # | ||
| 13 | # Copyright (C) 1994 by Hamish Macdonald | ||
| 14 | # Copyright (C) 2002,2011 Greg Ungerer <gerg@snapgear.com> | ||
| 15 | # | ||
| 16 | |||
| 1 | KBUILD_DEFCONFIG := multi_defconfig | 17 | KBUILD_DEFCONFIG := multi_defconfig |
| 2 | 18 | ||
| 19 | # | ||
| 20 | # Enable processor type. Ordering of these is important - we want to | ||
| 21 | # use the minimum processor type of the range we support. The logic | ||
| 22 | # for 680x0 will only allow use of the -m68060 or -m68040 if no other | ||
| 23 | # 680x0 type is specified - and no option is specified for 68030 or | ||
| 24 | # 68020. The other m68k/ColdFire types always specify some type of | ||
| 25 | # compiler cpu type flag. | ||
| 26 | # | ||
| 27 | ifndef CONFIG_M68040 | ||
| 28 | cpuflags-$(CONFIG_M68060) := -m68060 | ||
| 29 | endif | ||
| 30 | ifndef CONFIG_M68060 | ||
| 31 | cpuflags-$(CONFIG_M68040) := -m68040 | ||
| 32 | endif | ||
| 33 | cpuflags-$(CONFIG_M68030) := | ||
| 34 | cpuflags-$(CONFIG_M68020) := | ||
| 35 | cpuflags-$(CONFIG_M68360) := -m68332 | ||
| 36 | cpuflags-$(CONFIG_M68000) := -m68000 | ||
| 37 | cpuflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200) | ||
| 38 | cpuflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200) | ||
| 39 | cpuflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307) | ||
| 40 | cpuflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200) | ||
| 41 | cpuflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307) | ||
| 42 | cpuflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307) | ||
| 43 | cpuflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307) | ||
| 44 | cpuflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307) | ||
| 45 | cpuflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307) | ||
| 46 | cpuflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200) | ||
| 47 | cpuflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200) | ||
| 48 | cpuflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200) | ||
| 49 | cpuflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200) | ||
| 50 | |||
| 51 | KBUILD_AFLAGS += $(cpuflags-y) | ||
| 52 | KBUILD_CFLAGS += $(cpuflags-y) -pipe | ||
| 3 | ifdef CONFIG_MMU | 53 | ifdef CONFIG_MMU |
| 4 | include $(srctree)/arch/m68k/Makefile_mm | 54 | # without -fno-strength-reduce the 53c7xx.c driver fails ;-( |
| 55 | KBUILD_CFLAGS += -fno-strength-reduce -ffixed-a2 | ||
| 56 | else | ||
| 57 | # we can use a m68k-linux-gcc toolchain with these in place | ||
| 58 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | ||
| 59 | KBUILD_CFLAGS += -D__uClinux__ | ||
| 60 | KBUILD_AFLAGS += -D__uClinux__ | ||
| 61 | endif | ||
| 62 | |||
| 63 | LDFLAGS := -m m68kelf | ||
| 64 | KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/m68k/kernel/module.lds | ||
| 65 | ifneq ($(SUBARCH),$(ARCH)) | ||
| 66 | ifeq ($(CROSS_COMPILE),) | ||
| 67 | CROSS_COMPILE := $(call cc-cross-prefix, \ | ||
| 68 | m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-) | ||
| 69 | endif | ||
| 70 | endif | ||
| 71 | |||
| 72 | ifdef CONFIG_SUN3 | ||
| 73 | LDFLAGS_vmlinux = -N | ||
| 74 | endif | ||
| 75 | |||
| 76 | CHECKFLAGS += -D__mc68000__ | ||
| 77 | |||
| 78 | |||
| 79 | ifdef CONFIG_KGDB | ||
| 80 | # If configured for kgdb support, include debugging infos and keep the | ||
| 81 | # frame pointer | ||
| 82 | KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g | ||
| 83 | endif | ||
| 84 | |||
| 85 | # | ||
| 86 | # Select the assembler head startup code. Order is important. The default | ||
| 87 | # head code is first, processor specific selections can override it after. | ||
| 88 | # | ||
| 89 | head-y := arch/m68k/kernel/head.o | ||
| 90 | head-$(CONFIG_SUN3) := arch/m68k/kernel/sun3-head.o | ||
| 91 | head-$(CONFIG_M68360) := arch/m68k/platform/68360/head.o | ||
| 92 | head-$(CONFIG_M68000) := arch/m68k/platform/68328/head.o | ||
| 93 | head-$(CONFIG_COLDFIRE) := arch/m68k/platform/coldfire/head.o | ||
| 94 | |||
| 95 | core-y += arch/m68k/kernel/ arch/m68k/mm/ | ||
| 96 | libs-y += arch/m68k/lib/ | ||
| 97 | |||
| 98 | core-$(CONFIG_Q40) += arch/m68k/q40/ | ||
| 99 | core-$(CONFIG_AMIGA) += arch/m68k/amiga/ | ||
| 100 | core-$(CONFIG_ATARI) += arch/m68k/atari/ | ||
| 101 | core-$(CONFIG_MAC) += arch/m68k/mac/ | ||
| 102 | core-$(CONFIG_HP300) += arch/m68k/hp300/ | ||
| 103 | core-$(CONFIG_APOLLO) += arch/m68k/apollo/ | ||
| 104 | core-$(CONFIG_MVME147) += arch/m68k/mvme147/ | ||
| 105 | core-$(CONFIG_MVME16x) += arch/m68k/mvme16x/ | ||
| 106 | core-$(CONFIG_BVME6000) += arch/m68k/bvme6000/ | ||
| 107 | core-$(CONFIG_SUN3X) += arch/m68k/sun3x/ arch/m68k/sun3/ | ||
| 108 | core-$(CONFIG_SUN3) += arch/m68k/sun3/ arch/m68k/sun3/prom/ | ||
| 109 | core-$(CONFIG_NATFEAT) += arch/m68k/emu/ | ||
| 110 | core-$(CONFIG_M68040) += arch/m68k/fpsp040/ | ||
| 111 | core-$(CONFIG_M68060) += arch/m68k/ifpsp060/ | ||
| 112 | core-$(CONFIG_M68KFPU_EMU) += arch/m68k/math-emu/ | ||
| 113 | core-$(CONFIG_M68360) += arch/m68k/platform/68360/ | ||
| 114 | core-$(CONFIG_M68000) += arch/m68k/platform/68328/ | ||
| 115 | core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ | ||
| 116 | core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ | ||
| 117 | core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ | ||
| 118 | core-$(CONFIG_M5206) += arch/m68k/platform/5206/ | ||
| 119 | core-$(CONFIG_M5206e) += arch/m68k/platform/5206/ | ||
| 120 | core-$(CONFIG_M520x) += arch/m68k/platform/520x/ | ||
| 121 | core-$(CONFIG_M523x) += arch/m68k/platform/523x/ | ||
| 122 | core-$(CONFIG_M5249) += arch/m68k/platform/5249/ | ||
| 123 | core-$(CONFIG_M527x) += arch/m68k/platform/527x/ | ||
| 124 | core-$(CONFIG_M5272) += arch/m68k/platform/5272/ | ||
| 125 | core-$(CONFIG_M528x) += arch/m68k/platform/528x/ | ||
| 126 | core-$(CONFIG_M5307) += arch/m68k/platform/5307/ | ||
| 127 | core-$(CONFIG_M532x) += arch/m68k/platform/532x/ | ||
| 128 | core-$(CONFIG_M5407) += arch/m68k/platform/5407/ | ||
| 129 | core-$(CONFIG_M54xx) += arch/m68k/platform/54xx/ | ||
| 130 | |||
| 131 | |||
| 132 | all: zImage | ||
| 133 | |||
| 134 | lilo: vmlinux | ||
| 135 | if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi | ||
| 136 | if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi | ||
| 137 | cat vmlinux > $(INSTALL_PATH)/vmlinux | ||
| 138 | cp System.map $(INSTALL_PATH)/System.map | ||
| 139 | if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi | ||
| 140 | |||
| 141 | zImage compressed: vmlinux.gz | ||
| 142 | |||
| 143 | vmlinux.gz: vmlinux | ||
| 144 | |||
| 145 | ifndef CONFIG_KGDB | ||
| 146 | cp vmlinux vmlinux.tmp | ||
| 147 | $(STRIP) vmlinux.tmp | ||
| 148 | gzip -9c vmlinux.tmp >vmlinux.gz | ||
| 149 | rm vmlinux.tmp | ||
| 5 | else | 150 | else |
| 6 | include $(srctree)/arch/m68k/Makefile_no | 151 | gzip -9c vmlinux >vmlinux.gz |
| 7 | endif | 152 | endif |
| 153 | |||
| 154 | bzImage: vmlinux.bz2 | ||
| 155 | |||
| 156 | vmlinux.bz2: vmlinux | ||
| 157 | |||
| 158 | ifndef CONFIG_KGDB | ||
| 159 | cp vmlinux vmlinux.tmp | ||
| 160 | $(STRIP) vmlinux.tmp | ||
| 161 | bzip2 -1c vmlinux.tmp >vmlinux.bz2 | ||
| 162 | rm vmlinux.tmp | ||
| 163 | else | ||
| 164 | bzip2 -1c vmlinux >vmlinux.bz2 | ||
| 165 | endif | ||
| 166 | |||
| 167 | archclean: | ||
| 168 | rm -f vmlinux.gz vmlinux.bz2 | ||
| 169 | |||
| 170 | install: | ||
| 171 | sh $(srctree)/arch/m68k/install.sh $(KERNELRELEASE) vmlinux.gz System.map "$(INSTALL_PATH)" | ||
diff --git a/arch/m68k/Makefile_mm b/arch/m68k/Makefile_mm deleted file mode 100644 index d449b6d5aecf..000000000000 --- a/arch/m68k/Makefile_mm +++ /dev/null | |||
| @@ -1,121 +0,0 @@ | |||
| 1 | # | ||
| 2 | # m68k/Makefile | ||
| 3 | # | ||
| 4 | # This file is included by the global makefile so that you can add your own | ||
| 5 | # architecture-specific flags and dependencies. Remember to do have actions | ||
| 6 | # for "archclean" and "archdep" for cleaning up and making dependencies for | ||
| 7 | # this architecture | ||
| 8 | # | ||
| 9 | # This file is subject to the terms and conditions of the GNU General Public | ||
| 10 | # License. See the file "COPYING" in the main directory of this archive | ||
| 11 | # for more details. | ||
| 12 | # | ||
| 13 | # Copyright (C) 1994 by Hamish Macdonald | ||
| 14 | # | ||
| 15 | |||
| 16 | # override top level makefile | ||
| 17 | AS += -m68020 | ||
| 18 | LDFLAGS := -m m68kelf | ||
| 19 | KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/m68k/kernel/module.lds | ||
| 20 | ifneq ($(SUBARCH),$(ARCH)) | ||
| 21 | ifeq ($(CROSS_COMPILE),) | ||
| 22 | CROSS_COMPILE := $(call cc-cross-prefix, \ | ||
| 23 | m68k-linux-gnu- m68k-linux- m68k-unknown-linux-gnu-) | ||
| 24 | endif | ||
| 25 | endif | ||
| 26 | |||
| 27 | ifdef CONFIG_SUN3 | ||
| 28 | LDFLAGS_vmlinux = -N | ||
| 29 | endif | ||
| 30 | |||
| 31 | CHECKFLAGS += -D__mc68000__ | ||
| 32 | |||
| 33 | # without -fno-strength-reduce the 53c7xx.c driver fails ;-( | ||
| 34 | KBUILD_CFLAGS += -pipe -fno-strength-reduce -ffixed-a2 | ||
| 35 | |||
| 36 | # enable processor switch if compiled only for a single cpu | ||
| 37 | ifndef CONFIG_M68020 | ||
| 38 | ifndef CONFIG_M68030 | ||
| 39 | |||
| 40 | ifndef CONFIG_M68060 | ||
| 41 | KBUILD_CFLAGS += -m68040 | ||
| 42 | endif | ||
| 43 | |||
| 44 | ifndef CONFIG_M68040 | ||
| 45 | KBUILD_CFLAGS += -m68060 | ||
| 46 | endif | ||
| 47 | |||
| 48 | endif | ||
| 49 | endif | ||
| 50 | |||
| 51 | ifdef CONFIG_KGDB | ||
| 52 | # If configured for kgdb support, include debugging infos and keep the | ||
| 53 | # frame pointer | ||
| 54 | KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g | ||
| 55 | endif | ||
| 56 | |||
| 57 | ifndef CONFIG_SUN3 | ||
| 58 | head-y := arch/m68k/kernel/head.o | ||
| 59 | else | ||
| 60 | head-y := arch/m68k/kernel/sun3-head.o | ||
| 61 | endif | ||
| 62 | |||
| 63 | core-y += arch/m68k/kernel/ arch/m68k/mm/ | ||
| 64 | libs-y += arch/m68k/lib/ | ||
| 65 | |||
| 66 | core-$(CONFIG_Q40) += arch/m68k/q40/ | ||
| 67 | core-$(CONFIG_AMIGA) += arch/m68k/amiga/ | ||
| 68 | core-$(CONFIG_ATARI) += arch/m68k/atari/ | ||
| 69 | core-$(CONFIG_MAC) += arch/m68k/mac/ | ||
| 70 | core-$(CONFIG_HP300) += arch/m68k/hp300/ | ||
| 71 | core-$(CONFIG_APOLLO) += arch/m68k/apollo/ | ||
| 72 | core-$(CONFIG_MVME147) += arch/m68k/mvme147/ | ||
| 73 | core-$(CONFIG_MVME16x) += arch/m68k/mvme16x/ | ||
| 74 | core-$(CONFIG_BVME6000) += arch/m68k/bvme6000/ | ||
| 75 | core-$(CONFIG_SUN3X) += arch/m68k/sun3x/ arch/m68k/sun3/ | ||
| 76 | core-$(CONFIG_SUN3) += arch/m68k/sun3/ arch/m68k/sun3/prom/ | ||
| 77 | core-$(CONFIG_NATFEAT) += arch/m68k/emu/ | ||
| 78 | core-$(CONFIG_M68040) += arch/m68k/fpsp040/ | ||
| 79 | core-$(CONFIG_M68060) += arch/m68k/ifpsp060/ | ||
| 80 | core-$(CONFIG_M68KFPU_EMU) += arch/m68k/math-emu/ | ||
| 81 | |||
| 82 | all: zImage | ||
| 83 | |||
| 84 | lilo: vmlinux | ||
| 85 | if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi | ||
| 86 | if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi | ||
| 87 | cat vmlinux > $(INSTALL_PATH)/vmlinux | ||
| 88 | cp System.map $(INSTALL_PATH)/System.map | ||
| 89 | if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi | ||
| 90 | |||
| 91 | zImage compressed: vmlinux.gz | ||
| 92 | |||
| 93 | vmlinux.gz: vmlinux | ||
| 94 | |||
| 95 | ifndef CONFIG_KGDB | ||
| 96 | cp vmlinux vmlinux.tmp | ||
| 97 | $(STRIP) vmlinux.tmp | ||
| 98 | gzip -9c vmlinux.tmp >vmlinux.gz | ||
| 99 | rm vmlinux.tmp | ||
| 100 | else | ||
| 101 | gzip -9c vmlinux >vmlinux.gz | ||
| 102 | endif | ||
| 103 | |||
| 104 | bzImage: vmlinux.bz2 | ||
| 105 | |||
| 106 | vmlinux.bz2: vmlinux | ||
| 107 | |||
| 108 | ifndef CONFIG_KGDB | ||
| 109 | cp vmlinux vmlinux.tmp | ||
| 110 | $(STRIP) vmlinux.tmp | ||
| 111 | bzip2 -1c vmlinux.tmp >vmlinux.bz2 | ||
| 112 | rm vmlinux.tmp | ||
| 113 | else | ||
| 114 | bzip2 -1c vmlinux >vmlinux.bz2 | ||
| 115 | endif | ||
| 116 | |||
| 117 | archclean: | ||
| 118 | rm -f vmlinux.gz vmlinux.bz2 | ||
| 119 | |||
| 120 | install: | ||
| 121 | sh $(srctree)/arch/m68k/install.sh $(KERNELRELEASE) vmlinux.gz System.map "$(INSTALL_PATH)" | ||
diff --git a/arch/m68k/Makefile_no b/arch/m68k/Makefile_no deleted file mode 100644 index 844d3f172264..000000000000 --- a/arch/m68k/Makefile_no +++ /dev/null | |||
| @@ -1,124 +0,0 @@ | |||
| 1 | # | ||
| 2 | # arch/m68k/Makefile | ||
| 3 | # | ||
| 4 | # This file is subject to the terms and conditions of the GNU General Public | ||
| 5 | # License. See the file "COPYING" in the main directory of this archive | ||
| 6 | # for more details. | ||
| 7 | # | ||
| 8 | # (C) Copyright 2002, Greg Ungerer <gerg@snapgear.com> | ||
| 9 | # | ||
| 10 | |||
| 11 | platform-$(CONFIG_M68328) := 68328 | ||
| 12 | platform-$(CONFIG_M68EZ328) := 68EZ328 | ||
| 13 | platform-$(CONFIG_M68VZ328) := 68VZ328 | ||
| 14 | platform-$(CONFIG_M68360) := 68360 | ||
| 15 | platform-$(CONFIG_M5206) := 5206 | ||
| 16 | platform-$(CONFIG_M5206e) := 5206 | ||
| 17 | platform-$(CONFIG_M520x) := 520x | ||
| 18 | platform-$(CONFIG_M523x) := 523x | ||
| 19 | platform-$(CONFIG_M5249) := 5249 | ||
| 20 | platform-$(CONFIG_M527x) := 527x | ||
| 21 | platform-$(CONFIG_M5272) := 5272 | ||
| 22 | platform-$(CONFIG_M528x) := 528x | ||
| 23 | platform-$(CONFIG_M5307) := 5307 | ||
| 24 | platform-$(CONFIG_M532x) := 532x | ||
| 25 | platform-$(CONFIG_M5407) := 5407 | ||
| 26 | platform-$(CONFIG_M54xx) := 54xx | ||
| 27 | PLATFORM := $(platform-y) | ||
| 28 | |||
| 29 | board-$(CONFIG_PILOT) := pilot | ||
| 30 | board-$(CONFIG_UC5272) := UC5272 | ||
| 31 | board-$(CONFIG_UC5282) := UC5282 | ||
| 32 | board-$(CONFIG_UCSIMM) := ucsimm | ||
| 33 | board-$(CONFIG_UCDIMM) := ucdimm | ||
| 34 | board-$(CONFIG_UCQUICC) := uCquicc | ||
| 35 | board-$(CONFIG_DRAGEN2) := de2 | ||
| 36 | board-$(CONFIG_ARNEWSH) := ARNEWSH | ||
| 37 | board-$(CONFIG_FREESCALE) := FREESCALE | ||
| 38 | board-$(CONFIG_M5235EVB) := M5235EVB | ||
| 39 | board-$(CONFIG_M5271EVB) := M5271EVB | ||
| 40 | board-$(CONFIG_M5275EVB) := M5275EVB | ||
| 41 | board-$(CONFIG_M5282EVB) := M5282EVB | ||
| 42 | board-$(CONFIG_ELITE) := eLITE | ||
| 43 | board-$(CONFIG_NETtel) := NETtel | ||
| 44 | board-$(CONFIG_SECUREEDGEMP3) := MP3 | ||
| 45 | board-$(CONFIG_CLEOPATRA) := CLEOPATRA | ||
| 46 | board-$(CONFIG_senTec) := senTec | ||
| 47 | board-$(CONFIG_SNEHA) := SNEHA | ||
| 48 | board-$(CONFIG_M5208EVB) := M5208EVB | ||
| 49 | board-$(CONFIG_MOD5272) := MOD5272 | ||
| 50 | board-$(CONFIG_AVNET) := AVNET | ||
| 51 | board-$(CONFIG_SAVANT) := SAVANT | ||
| 52 | BOARD := $(board-y) | ||
| 53 | |||
| 54 | model-$(CONFIG_RAMKERNEL) := ram | ||
| 55 | model-$(CONFIG_ROMKERNEL) := rom | ||
| 56 | MODEL := $(model-y) | ||
| 57 | |||
| 58 | # | ||
| 59 | # Some code support is grouped together for a common cpu-subclass (for | ||
| 60 | # example all ColdFire cpu's are very similar). Determine the sub-class | ||
| 61 | # for the selected cpu. ONLY need to define this for the non-base member | ||
| 62 | # of the family. | ||
| 63 | # | ||
| 64 | cpuclass-$(CONFIG_M5206) := coldfire | ||
| 65 | cpuclass-$(CONFIG_M5206e) := coldfire | ||
| 66 | cpuclass-$(CONFIG_M520x) := coldfire | ||
| 67 | cpuclass-$(CONFIG_M523x) := coldfire | ||
| 68 | cpuclass-$(CONFIG_M5249) := coldfire | ||
| 69 | cpuclass-$(CONFIG_M527x) := coldfire | ||
| 70 | cpuclass-$(CONFIG_M5272) := coldfire | ||
| 71 | cpuclass-$(CONFIG_M528x) := coldfire | ||
| 72 | cpuclass-$(CONFIG_M5307) := coldfire | ||
| 73 | cpuclass-$(CONFIG_M532x) := coldfire | ||
| 74 | cpuclass-$(CONFIG_M5407) := coldfire | ||
| 75 | cpuclass-$(CONFIG_M54xx) := coldfire | ||
| 76 | cpuclass-$(CONFIG_M68328) := 68328 | ||
| 77 | cpuclass-$(CONFIG_M68EZ328) := 68328 | ||
| 78 | cpuclass-$(CONFIG_M68VZ328) := 68328 | ||
| 79 | cpuclass-$(CONFIG_M68360) := 68360 | ||
| 80 | CPUCLASS := $(cpuclass-y) | ||
| 81 | |||
| 82 | ifneq ($(CPUCLASS),$(PLATFORM)) | ||
| 83 | CLASSDIR := arch/m68k/platform/$(cpuclass-y)/ | ||
| 84 | endif | ||
| 85 | |||
| 86 | export PLATFORM BOARD MODEL CPUCLASS | ||
| 87 | |||
| 88 | # | ||
| 89 | # Some CFLAG additions based on specific CPU type. | ||
| 90 | # | ||
| 91 | cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200) | ||
| 92 | cflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200) | ||
| 93 | cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200) | ||
| 94 | cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307) | ||
| 95 | cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200) | ||
| 96 | cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307) | ||
| 97 | cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307) | ||
| 98 | cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307) | ||
| 99 | cflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307) | ||
| 100 | cflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200) | ||
| 101 | cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307) | ||
| 102 | cflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200) | ||
| 103 | cflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200) | ||
| 104 | cflags-$(CONFIG_M68328) := -m68000 | ||
| 105 | cflags-$(CONFIG_M68EZ328) := -m68000 | ||
| 106 | cflags-$(CONFIG_M68VZ328) := -m68000 | ||
| 107 | cflags-$(CONFIG_M68360) := -m68332 | ||
| 108 | |||
| 109 | KBUILD_AFLAGS += $(cflags-y) | ||
| 110 | |||
| 111 | KBUILD_CFLAGS += $(cflags-y) | ||
| 112 | KBUILD_CFLAGS += -D__linux__ | ||
| 113 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | ||
| 114 | |||
| 115 | head-y := arch/m68k/platform/$(cpuclass-y)/head.o | ||
| 116 | |||
| 117 | core-y += arch/m68k/kernel/ \ | ||
| 118 | arch/m68k/mm/ \ | ||
| 119 | $(CLASSDIR) \ | ||
| 120 | arch/m68k/platform/$(PLATFORM)/ | ||
| 121 | libs-y += arch/m68k/lib/ | ||
| 122 | |||
| 123 | archclean: | ||
| 124 | |||
diff --git a/arch/m68k/platform/68328/Makefile b/arch/m68k/platform/68328/Makefile index 5e5435552d56..e4dfd8fde068 100644 --- a/arch/m68k/platform/68328/Makefile +++ b/arch/m68k/platform/68328/Makefile | |||
| @@ -2,7 +2,10 @@ | |||
| 2 | # Makefile for arch/m68knommu/platform/68328. | 2 | # Makefile for arch/m68knommu/platform/68328. |
| 3 | # | 3 | # |
| 4 | 4 | ||
| 5 | head-y = head-$(MODEL).o | 5 | model-y := ram |
| 6 | model-$(CONFIG_ROMKERNEL) := rom | ||
| 7 | |||
| 8 | head-y = head-$(model-y).o | ||
| 6 | head-$(CONFIG_PILOT) = head-pilot.o | 9 | head-$(CONFIG_PILOT) = head-pilot.o |
| 7 | head-$(CONFIG_DRAGEN2) = head-de2.o | 10 | head-$(CONFIG_DRAGEN2) = head-de2.o |
| 8 | 11 | ||
diff --git a/arch/m68k/platform/68360/Makefile b/arch/m68k/platform/68360/Makefile index cf5af73a5789..f6f434383049 100644 --- a/arch/m68k/platform/68360/Makefile +++ b/arch/m68k/platform/68360/Makefile | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | # | 1 | # |
| 2 | # Makefile for arch/m68knommu/platform/68360. | 2 | # Makefile for arch/m68knommu/platform/68360. |
| 3 | # | 3 | # |
| 4 | model-y := ram | ||
| 5 | model-$(CONFIG_ROMKERNEL) := rom | ||
| 4 | 6 | ||
| 5 | obj-y := config.o commproc.o entry.o ints.o | 7 | obj-y := config.o commproc.o entry.o ints.o |
| 6 | 8 | ||
| 7 | extra-y := head.o | 9 | extra-y := head.o |
| 8 | 10 | ||
| 9 | $(obj)/head.o: $(obj)/head-$(MODEL).o | 11 | $(obj)/head.o: $(obj)/head-$(model-y).o |
| 10 | ln -sf head-$(MODEL).o $(obj)/head.o | 12 | ln -sf head-$(model-y).o $(obj)/head.o |
