]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | |
9ed8a0d6 | 17 | platform-$(CONFIG_M520x) := 520x |
777354b6 | 18 | platform-$(CONFIG_M523x) := 523x |
1da177e4 LT |
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 | |
9a6404b4 | 24 | platform-$(CONFIG_M532x) := 532x |
1da177e4 LT |
25 | platform-$(CONFIG_M5407) := 5407 |
26 | PLATFORM := $(platform-y) | |
27 | ||
28 | board-$(CONFIG_PILOT) := pilot | |
33e7a72a GU |
29 | board-$(CONFIG_UC5272) := UC5272 |
30 | board-$(CONFIG_UC5282) := UC5282 | |
1da177e4 LT |
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 | |
9ed8a0d6 | 36 | board-$(CONFIG_FREESCALE) := FREESCALE |
777354b6 | 37 | board-$(CONFIG_M5235EVB) := M5235EVB |
1da177e4 LT |
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 | |
9ed8a0d6 | 48 | board-$(CONFIG_M5208EVB) := M5208EVB |
777354b6 | 49 | board-$(CONFIG_MOD5272) := MOD5272 |
121036e5 | 50 | board-$(CONFIG_AVNET) := AVNET |
ada8d218 | 51 | board-$(CONFIG_SAVANT) := SAVANT |
1da177e4 LT |
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 | # | |
6d386798 GU |
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 | |
1da177e4 LT |
75 | cpuclass-$(CONFIG_M68328) := 68328 |
76 | cpuclass-$(CONFIG_M68EZ328) := 68328 | |
77 | cpuclass-$(CONFIG_M68VZ328) := 68328 | |
78 | cpuclass-$(CONFIG_M68360) := 68360 | |
79 | CPUCLASS := $(cpuclass-y) | |
80 | ||
81 | ifneq ($(CPUCLASS),$(PLATFORM)) | |
82 | CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/ | |
83 | endif | |
84 | ||
85 | export PLATFORM BOARD MODEL CPUCLASS | |
86 | ||
87 | # | |
88 | # Some CFLAG additions based on specific CPU type. | |
89 | # | |
3f787bff PDM |
90 | cflags-$(CONFIG_M5206) := -m5200 |
91 | cflags-$(CONFIG_M5206e) := -m5200 | |
92 | cflags-$(CONFIG_M520x) := -m5307 | |
93 | cflags-$(CONFIG_M523x) := -m5307 | |
94 | cflags-$(CONFIG_M5249) := -m5200 | |
95 | cflags-$(CONFIG_M527x) := -m5307 | |
96 | cflags-$(CONFIG_M5272) := -m5307 | |
97 | cflags-$(CONFIG_M528x) := -m5307 | |
98 | cflags-$(CONFIG_M5307) := -m5307 | |
99 | cflags-$(CONFIG_M532x) := -m5307 | |
100 | cflags-$(CONFIG_M5407) := -m5200 | |
1da177e4 LT |
101 | cflags-$(CONFIG_M68328) := -m68000 |
102 | cflags-$(CONFIG_M68EZ328) := -m68000 | |
103 | cflags-$(CONFIG_M68VZ328) := -m68000 | |
104 | cflags-$(CONFIG_M68360) := -m68332 | |
105 | ||
222d394d | 106 | KBUILD_AFLAGS += $(cflags-y) |
1da177e4 | 107 | |
a0f97e06 SR |
108 | KBUILD_CFLAGS += $(cflags-y) |
109 | KBUILD_CFLAGS += -D__linux__ | |
110 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | |
1da177e4 LT |
111 | |
112 | head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o | |
113 | ||
1da177e4 LT |
114 | core-y += arch/m68knommu/kernel/ \ |
115 | arch/m68knommu/mm/ \ | |
116 | $(CLASSDIR) \ | |
117 | arch/m68knommu/platform/$(PLATFORM)/ | |
118 | libs-y += arch/m68knommu/lib/ | |
119 | ||
1da177e4 | 120 | archclean: |
c48f484b | 121 |