Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # arch/m68knommu/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) := 5206e |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame^] | 17 | platform-$(CONFIG_M520x) := 520x |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 18 | platform-$(CONFIG_M523x) := 523x |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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_M5407) := 5407 |
| 25 | PLATFORM := $(platform-y) |
| 26 | |
| 27 | board-$(CONFIG_PILOT) := pilot |
| 28 | board-$(CONFIG_UCSIMM) := ucsimm |
| 29 | board-$(CONFIG_UCDIMM) := ucdimm |
| 30 | board-$(CONFIG_UCQUICC) := uCquicc |
| 31 | board-$(CONFIG_DRAGEN2) := de2 |
| 32 | board-$(CONFIG_ARNEWSH) := ARNEWSH |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame^] | 33 | board-$(CONFIG_FREESCALE) := FREESCALE |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 34 | board-$(CONFIG_M5235EVB) := M5235EVB |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | board-$(CONFIG_M5271EVB) := M5271EVB |
| 36 | board-$(CONFIG_M5275EVB) := M5275EVB |
| 37 | board-$(CONFIG_M5282EVB) := M5282EVB |
| 38 | board-$(CONFIG_ELITE) := eLITE |
| 39 | board-$(CONFIG_eLIA) := eLIA |
| 40 | board-$(CONFIG_NETtel) := NETtel |
| 41 | board-$(CONFIG_SECUREEDGEMP3) := MP3 |
| 42 | board-$(CONFIG_CLEOPATRA) := CLEOPATRA |
| 43 | board-$(CONFIG_senTec) := senTec |
| 44 | board-$(CONFIG_SNEHA) := SNEHA |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame^] | 45 | board-$(CONFIG_M5208EVB) := M5208EVB |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 46 | board-$(CONFIG_MOD5272) := MOD5272 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | BOARD := $(board-y) |
| 48 | |
| 49 | model-$(CONFIG_RAMKERNEL) := ram |
| 50 | model-$(CONFIG_ROMKERNEL) := rom |
| 51 | MODEL := $(model-y) |
| 52 | |
| 53 | # |
| 54 | # Some code support is grouped together for a common cpu-subclass (for |
| 55 | # example all ColdFire cpu's are very similar). Determine the sub-class |
| 56 | # for the selected cpu. ONLY need to define this for the non-base member |
| 57 | # of the family. |
| 58 | # |
| 59 | cpuclass-$(CONFIG_M5206) := 5307 |
| 60 | cpuclass-$(CONFIG_M5206e) := 5307 |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame^] | 61 | cpuclass-$(CONFIG_M520x) := 5307 |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 62 | cpuclass-$(CONFIG_M523x) := 5307 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | cpuclass-$(CONFIG_M5249) := 5307 |
| 64 | cpuclass-$(CONFIG_M527x) := 5307 |
| 65 | cpuclass-$(CONFIG_M5272) := 5307 |
| 66 | cpuclass-$(CONFIG_M528x) := 5307 |
| 67 | cpuclass-$(CONFIG_M5307) := 5307 |
| 68 | cpuclass-$(CONFIG_M5407) := 5307 |
| 69 | cpuclass-$(CONFIG_M68328) := 68328 |
| 70 | cpuclass-$(CONFIG_M68EZ328) := 68328 |
| 71 | cpuclass-$(CONFIG_M68VZ328) := 68328 |
| 72 | cpuclass-$(CONFIG_M68360) := 68360 |
| 73 | CPUCLASS := $(cpuclass-y) |
| 74 | |
| 75 | ifneq ($(CPUCLASS),$(PLATFORM)) |
| 76 | CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/ |
| 77 | endif |
| 78 | |
| 79 | export PLATFORM BOARD MODEL CPUCLASS |
| 80 | |
| 81 | # |
| 82 | # Some CFLAG additions based on specific CPU type. |
| 83 | # |
| 84 | cflags-$(CONFIG_M5206) := -m5200 -Wa,-S -Wa,-m5200 |
| 85 | cflags-$(CONFIG_M5206e) := -m5200 -Wa,-S -Wa,-m5200 |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame^] | 86 | cflags-$(CONFIG_M520x) := -m5307 -Wa,-S -Wa,-m5307 |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 87 | cflags-$(CONFIG_M523x) := -m5307 -Wa,-S -Wa,-m5307 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 88 | cflags-$(CONFIG_M5249) := -m5200 -Wa,-S -Wa,-m5200 |
| 89 | cflags-$(CONFIG_M527x) := -m5307 -Wa,-S -Wa,-m5307 |
| 90 | cflags-$(CONFIG_M5272) := -m5307 -Wa,-S -Wa,-m5307 |
| 91 | cflags-$(CONFIG_M528x) := -m5307 -Wa,-S -Wa,-m5307 |
| 92 | cflags-$(CONFIG_M5307) := -m5307 -Wa,-S -Wa,-m5307 |
| 93 | cflags-$(CONFIG_M5407) := -m5200 -Wa,-S -Wa,-m5200 |
| 94 | cflags-$(CONFIG_M68328) := -m68000 |
| 95 | cflags-$(CONFIG_M68EZ328) := -m68000 |
| 96 | cflags-$(CONFIG_M68VZ328) := -m68000 |
| 97 | cflags-$(CONFIG_M68360) := -m68332 |
| 98 | |
| 99 | AFLAGS += $(cflags-y) |
| 100 | |
| 101 | CFLAGS += $(cflags-y) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 102 | CFLAGS += -O1 -g |
| 103 | CFLAGS += -D__linux__ |
| 104 | CFLAGS += -DUTS_SYSNAME=\"uClinux\" |
| 105 | |
| 106 | head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o |
| 107 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 108 | core-y += arch/m68knommu/kernel/ \ |
| 109 | arch/m68knommu/mm/ \ |
| 110 | $(CLASSDIR) \ |
| 111 | arch/m68knommu/platform/$(PLATFORM)/ |
| 112 | libs-y += arch/m68knommu/lib/ |
| 113 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 114 | archclean: |
Sam Ravnborg | 7c6b155 | 2005-07-25 12:51:08 +0000 | [diff] [blame] | 115 | $(Q)$(MAKE) $(clean)=arch/m68knommu/boot |