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