blob: b8fdf191b8f6b3e95d05830f13dc33e7b06c1425 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
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
Greg Ungerer777354b2005-09-02 10:42:52 +100017platform-$(CONFIG_M523x) := 523x
Linus Torvalds1da177e2005-04-16 15:20:36 -070018platform-$(CONFIG_M5249) := 5249
19platform-$(CONFIG_M527x) := 527x
20platform-$(CONFIG_M5272) := 5272
21platform-$(CONFIG_M528x) := 528x
22platform-$(CONFIG_M5307) := 5307
23platform-$(CONFIG_M5407) := 5407
24PLATFORM := $(platform-y)
25
26board-$(CONFIG_PILOT) := pilot
27board-$(CONFIG_UCSIMM) := ucsimm
28board-$(CONFIG_UCDIMM) := ucdimm
29board-$(CONFIG_UCQUICC) := uCquicc
30board-$(CONFIG_DRAGEN2) := de2
31board-$(CONFIG_ARNEWSH) := ARNEWSH
32board-$(CONFIG_MOTOROLA) := MOTOROLA
Greg Ungerer777354b2005-09-02 10:42:52 +100033board-$(CONFIG_M5235EVB) := M5235EVB
Linus Torvalds1da177e2005-04-16 15:20:36 -070034board-$(CONFIG_M5271EVB) := M5271EVB
35board-$(CONFIG_M5275EVB) := M5275EVB
36board-$(CONFIG_M5282EVB) := M5282EVB
37board-$(CONFIG_ELITE) := eLITE
38board-$(CONFIG_eLIA) := eLIA
39board-$(CONFIG_NETtel) := NETtel
40board-$(CONFIG_SECUREEDGEMP3) := MP3
41board-$(CONFIG_CLEOPATRA) := CLEOPATRA
42board-$(CONFIG_senTec) := senTec
43board-$(CONFIG_SNEHA) := SNEHA
Greg Ungerer777354b2005-09-02 10:42:52 +100044board-$(CONFIG_MOD5272) := MOD5272
Linus Torvalds1da177e2005-04-16 15:20:36 -070045BOARD := $(board-y)
46
47model-$(CONFIG_RAMKERNEL) := ram
48model-$(CONFIG_ROMKERNEL) := rom
49MODEL := $(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#
57cpuclass-$(CONFIG_M5206) := 5307
58cpuclass-$(CONFIG_M5206e) := 5307
Greg Ungerer777354b2005-09-02 10:42:52 +100059cpuclass-$(CONFIG_M523x) := 5307
Linus Torvalds1da177e2005-04-16 15:20:36 -070060cpuclass-$(CONFIG_M5249) := 5307
61cpuclass-$(CONFIG_M527x) := 5307
62cpuclass-$(CONFIG_M5272) := 5307
63cpuclass-$(CONFIG_M528x) := 5307
64cpuclass-$(CONFIG_M5307) := 5307
65cpuclass-$(CONFIG_M5407) := 5307
66cpuclass-$(CONFIG_M68328) := 68328
67cpuclass-$(CONFIG_M68EZ328) := 68328
68cpuclass-$(CONFIG_M68VZ328) := 68328
69cpuclass-$(CONFIG_M68360) := 68360
70CPUCLASS := $(cpuclass-y)
71
72ifneq ($(CPUCLASS),$(PLATFORM))
73CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
74endif
75
76export PLATFORM BOARD MODEL CPUCLASS
77
78#
79# Some CFLAG additions based on specific CPU type.
80#
81cflags-$(CONFIG_M5206) := -m5200 -Wa,-S -Wa,-m5200
82cflags-$(CONFIG_M5206e) := -m5200 -Wa,-S -Wa,-m5200
Greg Ungerer777354b2005-09-02 10:42:52 +100083cflags-$(CONFIG_M523x) := -m5307 -Wa,-S -Wa,-m5307
Linus Torvalds1da177e2005-04-16 15:20:36 -070084cflags-$(CONFIG_M5249) := -m5200 -Wa,-S -Wa,-m5200
85cflags-$(CONFIG_M527x) := -m5307 -Wa,-S -Wa,-m5307
86cflags-$(CONFIG_M5272) := -m5307 -Wa,-S -Wa,-m5307
87cflags-$(CONFIG_M528x) := -m5307 -Wa,-S -Wa,-m5307
88cflags-$(CONFIG_M5307) := -m5307 -Wa,-S -Wa,-m5307
89cflags-$(CONFIG_M5407) := -m5200 -Wa,-S -Wa,-m5200
90cflags-$(CONFIG_M68328) := -m68000
91cflags-$(CONFIG_M68EZ328) := -m68000
92cflags-$(CONFIG_M68VZ328) := -m68000
93cflags-$(CONFIG_M68360) := -m68332
94
95AFLAGS += $(cflags-y)
96
97CFLAGS += $(cflags-y)
98CFLAGS += -fno-builtin
99CFLAGS += -O1 -g
100CFLAGS += -D__linux__
101CFLAGS += -DUTS_SYSNAME=\"uClinux\"
102
103head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
104
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105core-y += arch/m68knommu/kernel/ \
106 arch/m68knommu/mm/ \
107 $(CLASSDIR) \
108 arch/m68knommu/platform/$(PLATFORM)/
109libs-y += arch/m68knommu/lib/
110
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111archclean:
Sam Ravnborg7c6b1552005-07-25 12:51:08 +0000112 $(Q)$(MAKE) $(clean)=arch/m68knommu/boot