]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/m68knommu/Makefile
Merge branch 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh...
[net-next-2.6.git] / arch / m68knommu / Makefile
CommitLineData
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
a6260ef8
SS
11KBUILD_DEFCONFIG := m5208evb_defconfig
12
1da177e4
LT
13platform-$(CONFIG_M68328) := 68328
14platform-$(CONFIG_M68EZ328) := 68EZ328
15platform-$(CONFIG_M68VZ328) := 68VZ328
16platform-$(CONFIG_M68360) := 68360
17platform-$(CONFIG_M5206) := 5206
18platform-$(CONFIG_M5206e) := 5206e
9ed8a0d6 19platform-$(CONFIG_M520x) := 520x
777354b6 20platform-$(CONFIG_M523x) := 523x
1da177e4
LT
21platform-$(CONFIG_M5249) := 5249
22platform-$(CONFIG_M527x) := 527x
23platform-$(CONFIG_M5272) := 5272
24platform-$(CONFIG_M528x) := 528x
25platform-$(CONFIG_M5307) := 5307
9a6404b4 26platform-$(CONFIG_M532x) := 532x
1da177e4 27platform-$(CONFIG_M5407) := 5407
ea49f8ff 28platform-$(CONFIG_M548x) := 548x
1da177e4
LT
29PLATFORM := $(platform-y)
30
31board-$(CONFIG_PILOT) := pilot
33e7a72a
GU
32board-$(CONFIG_UC5272) := UC5272
33board-$(CONFIG_UC5282) := UC5282
1da177e4
LT
34board-$(CONFIG_UCSIMM) := ucsimm
35board-$(CONFIG_UCDIMM) := ucdimm
36board-$(CONFIG_UCQUICC) := uCquicc
37board-$(CONFIG_DRAGEN2) := de2
38board-$(CONFIG_ARNEWSH) := ARNEWSH
9ed8a0d6 39board-$(CONFIG_FREESCALE) := FREESCALE
777354b6 40board-$(CONFIG_M5235EVB) := M5235EVB
1da177e4
LT
41board-$(CONFIG_M5271EVB) := M5271EVB
42board-$(CONFIG_M5275EVB) := M5275EVB
43board-$(CONFIG_M5282EVB) := M5282EVB
44board-$(CONFIG_ELITE) := eLITE
1da177e4
LT
45board-$(CONFIG_NETtel) := NETtel
46board-$(CONFIG_SECUREEDGEMP3) := MP3
47board-$(CONFIG_CLEOPATRA) := CLEOPATRA
48board-$(CONFIG_senTec) := senTec
49board-$(CONFIG_SNEHA) := SNEHA
9ed8a0d6 50board-$(CONFIG_M5208EVB) := M5208EVB
777354b6 51board-$(CONFIG_MOD5272) := MOD5272
121036e5 52board-$(CONFIG_AVNET) := AVNET
ada8d218 53board-$(CONFIG_SAVANT) := SAVANT
1da177e4
LT
54BOARD := $(board-y)
55
56model-$(CONFIG_RAMKERNEL) := ram
57model-$(CONFIG_ROMKERNEL) := rom
58MODEL := $(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#
6d386798
GU
66cpuclass-$(CONFIG_M5206) := coldfire
67cpuclass-$(CONFIG_M5206e) := coldfire
68cpuclass-$(CONFIG_M520x) := coldfire
69cpuclass-$(CONFIG_M523x) := coldfire
70cpuclass-$(CONFIG_M5249) := coldfire
71cpuclass-$(CONFIG_M527x) := coldfire
72cpuclass-$(CONFIG_M5272) := coldfire
73cpuclass-$(CONFIG_M528x) := coldfire
74cpuclass-$(CONFIG_M5307) := coldfire
75cpuclass-$(CONFIG_M532x) := coldfire
76cpuclass-$(CONFIG_M5407) := coldfire
ea49f8ff 77cpuclass-$(CONFIG_M548x) := coldfire
1da177e4
LT
78cpuclass-$(CONFIG_M68328) := 68328
79cpuclass-$(CONFIG_M68EZ328) := 68328
80cpuclass-$(CONFIG_M68VZ328) := 68328
81cpuclass-$(CONFIG_M68360) := 68360
82CPUCLASS := $(cpuclass-y)
83
84ifneq ($(CPUCLASS),$(PLATFORM))
85CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
86endif
87
88export PLATFORM BOARD MODEL CPUCLASS
89
90#
91# Some CFLAG additions based on specific CPU type.
92#
b4d63e8e
GU
93cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200)
94cflags-$(CONFIG_M5206e) := $(call cc-option,-m5206e,-m5200)
95cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200)
a6260ef8 96cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307)
b4d63e8e 97cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200)
a6260ef8 98cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307)
eb79cbe2 99cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307)
a6260ef8
SS
100cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307)
101cflags-$(CONFIG_M528x) := $(call cc-option,-m528x,-m5307)
b4d63e8e 102cflags-$(CONFIG_M5307) := $(call cc-option,-m5307,-m5200)
a6260ef8 103cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307)
b4d63e8e 104cflags-$(CONFIG_M5407) := $(call cc-option,-m5407,-m5200)
ea49f8ff 105cflags-$(CONFIG_M548x) := $(call cc-option,-m5407,-m5200)
1da177e4
LT
106cflags-$(CONFIG_M68328) := -m68000
107cflags-$(CONFIG_M68EZ328) := -m68000
108cflags-$(CONFIG_M68VZ328) := -m68000
109cflags-$(CONFIG_M68360) := -m68332
110
222d394d 111KBUILD_AFLAGS += $(cflags-y)
1da177e4 112
a0f97e06
SR
113KBUILD_CFLAGS += $(cflags-y)
114KBUILD_CFLAGS += -D__linux__
115KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
1da177e4
LT
116
117head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
118
1da177e4
LT
119core-y += arch/m68knommu/kernel/ \
120 arch/m68knommu/mm/ \
121 $(CLASSDIR) \
122 arch/m68knommu/platform/$(PLATFORM)/
123libs-y += arch/m68knommu/lib/
124
1da177e4 125archclean:
c48f484b 126