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