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