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 | |
Sebastian Siewior | a6260ef | 2008-05-09 16:10:37 +0200 | [diff] [blame] | 11 | KBUILD_DEFCONFIG := m5208evb_defconfig |
| 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | platform-$(CONFIG_M68328) := 68328 |
| 14 | platform-$(CONFIG_M68EZ328) := 68EZ328 |
| 15 | platform-$(CONFIG_M68VZ328) := 68VZ328 |
| 16 | platform-$(CONFIG_M68360) := 68360 |
| 17 | platform-$(CONFIG_M5206) := 5206 |
| 18 | platform-$(CONFIG_M5206e) := 5206e |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 19 | platform-$(CONFIG_M520x) := 520x |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 20 | platform-$(CONFIG_M523x) := 523x |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | platform-$(CONFIG_M5249) := 5249 |
| 22 | platform-$(CONFIG_M527x) := 527x |
| 23 | platform-$(CONFIG_M5272) := 5272 |
| 24 | platform-$(CONFIG_M528x) := 528x |
| 25 | platform-$(CONFIG_M5307) := 5307 |
Matt Waddel | 9a6404b | 2006-06-27 12:50:53 +1000 | [diff] [blame] | 26 | platform-$(CONFIG_M532x) := 532x |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | platform-$(CONFIG_M5407) := 5407 |
Philippe De Muyter | ea49f8ff | 2010-09-20 13:11:11 +0200 | [diff] [blame^] | 28 | platform-$(CONFIG_M548x) := 548x |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | PLATFORM := $(platform-y) |
| 30 | |
| 31 | board-$(CONFIG_PILOT) := pilot |
Greg Ungerer | 33e7a72 | 2007-07-25 22:07:20 +1000 | [diff] [blame] | 32 | board-$(CONFIG_UC5272) := UC5272 |
| 33 | board-$(CONFIG_UC5282) := UC5282 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | board-$(CONFIG_UCSIMM) := ucsimm |
| 35 | board-$(CONFIG_UCDIMM) := ucdimm |
| 36 | board-$(CONFIG_UCQUICC) := uCquicc |
| 37 | board-$(CONFIG_DRAGEN2) := de2 |
| 38 | board-$(CONFIG_ARNEWSH) := ARNEWSH |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 39 | board-$(CONFIG_FREESCALE) := FREESCALE |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 40 | board-$(CONFIG_M5235EVB) := M5235EVB |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 41 | board-$(CONFIG_M5271EVB) := M5271EVB |
| 42 | board-$(CONFIG_M5275EVB) := M5275EVB |
| 43 | board-$(CONFIG_M5282EVB) := M5282EVB |
| 44 | board-$(CONFIG_ELITE) := eLITE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 45 | board-$(CONFIG_NETtel) := NETtel |
| 46 | board-$(CONFIG_SECUREEDGEMP3) := MP3 |
| 47 | board-$(CONFIG_CLEOPATRA) := CLEOPATRA |
| 48 | board-$(CONFIG_senTec) := senTec |
| 49 | board-$(CONFIG_SNEHA) := SNEHA |
Greg Ungerer | 9ed8a0d | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 50 | board-$(CONFIG_M5208EVB) := M5208EVB |
Greg Ungerer | 777354b | 2005-09-02 10:42:52 +1000 | [diff] [blame] | 51 | board-$(CONFIG_MOD5272) := MOD5272 |
Daniel Alomar | 121036e | 2006-06-27 12:49:11 +1000 | [diff] [blame] | 52 | board-$(CONFIG_AVNET) := AVNET |
Wilson Callan | ada8d21 | 2007-10-23 14:37:54 +1000 | [diff] [blame] | 53 | board-$(CONFIG_SAVANT) := SAVANT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | BOARD := $(board-y) |
| 55 | |
| 56 | model-$(CONFIG_RAMKERNEL) := ram |
| 57 | model-$(CONFIG_ROMKERNEL) := rom |
| 58 | MODEL := $(model-y) |
| 59 | |
| 60 | # |
| 61 | # Some code support is grouped together for a common cpu-subclass (for |
| 62 | # example all ColdFire cpu's are very similar). Determine the sub-class |
| 63 | # for the selected cpu. ONLY need to define this for the non-base member |
| 64 | # of the family. |
| 65 | # |
Greg Ungerer | 6d38679 | 2008-02-01 17:37:56 +1000 | [diff] [blame] | 66 | cpuclass-$(CONFIG_M5206) := coldfire |
| 67 | cpuclass-$(CONFIG_M5206e) := coldfire |
| 68 | cpuclass-$(CONFIG_M520x) := coldfire |
| 69 | cpuclass-$(CONFIG_M523x) := coldfire |
| 70 | cpuclass-$(CONFIG_M5249) := coldfire |
| 71 | cpuclass-$(CONFIG_M527x) := coldfire |
| 72 | cpuclass-$(CONFIG_M5272) := coldfire |
| 73 | cpuclass-$(CONFIG_M528x) := coldfire |
| 74 | cpuclass-$(CONFIG_M5307) := coldfire |
| 75 | cpuclass-$(CONFIG_M532x) := coldfire |
| 76 | cpuclass-$(CONFIG_M5407) := coldfire |
Philippe De Muyter | ea49f8ff | 2010-09-20 13:11:11 +0200 | [diff] [blame^] | 77 | cpuclass-$(CONFIG_M548x) := coldfire |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | cpuclass-$(CONFIG_M68328) := 68328 |
| 79 | cpuclass-$(CONFIG_M68EZ328) := 68328 |
| 80 | cpuclass-$(CONFIG_M68VZ328) := 68328 |
| 81 | cpuclass-$(CONFIG_M68360) := 68360 |
| 82 | CPUCLASS := $(cpuclass-y) |
| 83 | |
| 84 | ifneq ($(CPUCLASS),$(PLATFORM)) |
| 85 | CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/ |
| 86 | endif |
| 87 | |
| 88 | export PLATFORM BOARD MODEL CPUCLASS |
| 89 | |
| 90 | # |
| 91 | # Some CFLAG additions based on specific CPU type. |
| 92 | # |
Greg Ungerer | b4d63e8 | 2009-03-30 10:29:45 +1000 | [diff] [blame] | 93 | cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200) |
| 94 | cflags-$(CONFIG_M5206e) := $(call cc-option,-m5206e,-m5200) |
| 95 | cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200) |
Sebastian Siewior | a6260ef | 2008-05-09 16:10:37 +0200 | [diff] [blame] | 96 | cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307) |
Greg Ungerer | b4d63e8 | 2009-03-30 10:29:45 +1000 | [diff] [blame] | 97 | cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200) |
Sebastian Siewior | a6260ef | 2008-05-09 16:10:37 +0200 | [diff] [blame] | 98 | cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307) |
Philip Nye | eb79cbe | 2010-01-12 10:18:03 +1000 | [diff] [blame] | 99 | cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307) |
Sebastian Siewior | a6260ef | 2008-05-09 16:10:37 +0200 | [diff] [blame] | 100 | cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307) |
| 101 | cflags-$(CONFIG_M528x) := $(call cc-option,-m528x,-m5307) |
Greg Ungerer | b4d63e8 | 2009-03-30 10:29:45 +1000 | [diff] [blame] | 102 | cflags-$(CONFIG_M5307) := $(call cc-option,-m5307,-m5200) |
Sebastian Siewior | a6260ef | 2008-05-09 16:10:37 +0200 | [diff] [blame] | 103 | cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307) |
Greg Ungerer | b4d63e8 | 2009-03-30 10:29:45 +1000 | [diff] [blame] | 104 | cflags-$(CONFIG_M5407) := $(call cc-option,-m5407,-m5200) |
Philippe De Muyter | ea49f8ff | 2010-09-20 13:11:11 +0200 | [diff] [blame^] | 105 | cflags-$(CONFIG_M548x) := $(call cc-option,-m5407,-m5200) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | cflags-$(CONFIG_M68328) := -m68000 |
| 107 | cflags-$(CONFIG_M68EZ328) := -m68000 |
| 108 | cflags-$(CONFIG_M68VZ328) := -m68000 |
| 109 | cflags-$(CONFIG_M68360) := -m68332 |
| 110 | |
Sam Ravnborg | 222d394 | 2007-10-15 21:59:31 +0200 | [diff] [blame] | 111 | KBUILD_AFLAGS += $(cflags-y) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 112 | |
Sam Ravnborg | a0f97e0 | 2007-10-14 22:21:35 +0200 | [diff] [blame] | 113 | KBUILD_CFLAGS += $(cflags-y) |
| 114 | KBUILD_CFLAGS += -D__linux__ |
| 115 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 116 | |
| 117 | head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o |
| 118 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 119 | core-y += arch/m68knommu/kernel/ \ |
| 120 | arch/m68knommu/mm/ \ |
| 121 | $(CLASSDIR) \ |
| 122 | arch/m68knommu/platform/$(PLATFORM)/ |
| 123 | libs-y += arch/m68knommu/lib/ |
| 124 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | archclean: |
Greg Ungerer | c48f484 | 2007-10-23 14:37:54 +1000 | [diff] [blame] | 126 | |