]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - arch/m68knommu/Makefile
[PATCH] ppc32: Remove board support for SPD823TS
[linux-2.6.git] / arch / m68knommu / Makefile
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
17 platform-$(CONFIG_M523x)        := 523x
18 platform-$(CONFIG_M5249)        := 5249
19 platform-$(CONFIG_M527x)        := 527x
20 platform-$(CONFIG_M5272)        := 5272
21 platform-$(CONFIG_M528x)        := 528x
22 platform-$(CONFIG_M5307)        := 5307
23 platform-$(CONFIG_M5407)        := 5407
24 PLATFORM := $(platform-y)
25
26 board-$(CONFIG_PILOT)           := pilot
27 board-$(CONFIG_UCSIMM)          := ucsimm
28 board-$(CONFIG_UCDIMM)          := ucdimm
29 board-$(CONFIG_UCQUICC)         := uCquicc
30 board-$(CONFIG_DRAGEN2)         := de2
31 board-$(CONFIG_ARNEWSH)         := ARNEWSH
32 board-$(CONFIG_MOTOROLA)        := MOTOROLA
33 board-$(CONFIG_M5235EVB)        := M5235EVB
34 board-$(CONFIG_M5271EVB)        := M5271EVB
35 board-$(CONFIG_M5275EVB)        := M5275EVB
36 board-$(CONFIG_M5282EVB)        := M5282EVB
37 board-$(CONFIG_ELITE)           := eLITE
38 board-$(CONFIG_eLIA)            := eLIA
39 board-$(CONFIG_NETtel)          := NETtel
40 board-$(CONFIG_SECUREEDGEMP3)   := MP3
41 board-$(CONFIG_CLEOPATRA)       := CLEOPATRA
42 board-$(CONFIG_senTec)          := senTec
43 board-$(CONFIG_SNEHA)           := SNEHA
44 board-$(CONFIG_MOD5272)         := MOD5272
45 BOARD := $(board-y)
46
47 model-$(CONFIG_RAMKERNEL)       := ram
48 model-$(CONFIG_ROMKERNEL)       := rom
49 MODEL := $(model-y)
50
51 #
52 # Some code support is grouped together for a common cpu-subclass (for
53 # example all ColdFire cpu's are very similar). Determine the sub-class
54 # for the selected cpu. ONLY need to define this for the non-base member
55 # of the family.
56 #
57 cpuclass-$(CONFIG_M5206)        := 5307
58 cpuclass-$(CONFIG_M5206e)       := 5307
59 cpuclass-$(CONFIG_M523x)        := 5307
60 cpuclass-$(CONFIG_M5249)        := 5307
61 cpuclass-$(CONFIG_M527x)        := 5307
62 cpuclass-$(CONFIG_M5272)        := 5307
63 cpuclass-$(CONFIG_M528x)        := 5307
64 cpuclass-$(CONFIG_M5307)        := 5307
65 cpuclass-$(CONFIG_M5407)        := 5307
66 cpuclass-$(CONFIG_M68328)       := 68328
67 cpuclass-$(CONFIG_M68EZ328)     := 68328
68 cpuclass-$(CONFIG_M68VZ328)     := 68328
69 cpuclass-$(CONFIG_M68360)       := 68360
70 CPUCLASS := $(cpuclass-y)
71
72 ifneq ($(CPUCLASS),$(PLATFORM))
73 CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
74 endif
75
76 export PLATFORM BOARD MODEL CPUCLASS
77
78 #
79 # Some CFLAG additions based on specific CPU type.
80 #
81 cflags-$(CONFIG_M5206)          := -m5200 -Wa,-S -Wa,-m5200
82 cflags-$(CONFIG_M5206e)         := -m5200 -Wa,-S -Wa,-m5200
83 cflags-$(CONFIG_M523x)          := -m5307 -Wa,-S -Wa,-m5307
84 cflags-$(CONFIG_M5249)          := -m5200 -Wa,-S -Wa,-m5200
85 cflags-$(CONFIG_M527x)          := -m5307 -Wa,-S -Wa,-m5307
86 cflags-$(CONFIG_M5272)          := -m5307 -Wa,-S -Wa,-m5307
87 cflags-$(CONFIG_M528x)          := -m5307 -Wa,-S -Wa,-m5307
88 cflags-$(CONFIG_M5307)          := -m5307 -Wa,-S -Wa,-m5307
89 cflags-$(CONFIG_M5407)          := -m5200 -Wa,-S -Wa,-m5200
90 cflags-$(CONFIG_M68328)         := -m68000
91 cflags-$(CONFIG_M68EZ328)       := -m68000
92 cflags-$(CONFIG_M68VZ328)       := -m68000
93 cflags-$(CONFIG_M68360)         := -m68332
94
95 AFLAGS += $(cflags-y)
96
97 CFLAGS += $(cflags-y)
98 CFLAGS += -fno-builtin
99 CFLAGS += -O1 -g
100 CFLAGS += -D__linux__
101 CFLAGS += -DUTS_SYSNAME=\"uClinux\"
102
103 head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
104
105 CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
106                arch/$(ARCH)/kernel/asm-offsets.s
107
108 core-y  += arch/m68knommu/kernel/ \
109            arch/m68knommu/mm/ \
110            $(CLASSDIR) \
111            arch/m68knommu/platform/$(PLATFORM)/
112 libs-y  += arch/m68knommu/lib/
113
114 prepare: include/asm-$(ARCH)/asm-offsets.h
115
116 archclean:
117         $(call descend arch/$(ARCH)/boot, subdirclean)
118
119 include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
120                                    include/asm include/linux/version.h \
121                                    include/config/MARKER
122         $(call filechk,gen-asm-offsets)