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

Archive Download this file



interactive