Blame view

arch/m68k/Makefile_no 4 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
  #
66d857b08   Greg Ungerer   m68k: merge m68k ...
2
  # arch/m68k/Makefile
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3
4
5
6
7
8
9
10
11
12
13
14
15
  #
  # This file is subject to the terms and conditions of the GNU General Public
  # License.  See the file "COPYING" in the main directory of this archive
  # for more details.
  #
  # (C) Copyright 2002, Greg Ungerer <gerg@snapgear.com>
  #
  
  platform-$(CONFIG_M68328)	:= 68328
  platform-$(CONFIG_M68EZ328)	:= 68EZ328
  platform-$(CONFIG_M68VZ328)	:= 68VZ328
  platform-$(CONFIG_M68360)	:= 68360
  platform-$(CONFIG_M5206)	:= 5206
f4a543733   Greg Ungerer   m68knommu: merge ...
16
  platform-$(CONFIG_M5206e)	:= 5206
9ed8a0d6c   Greg Ungerer   [PATCH] m68knommu...
17
  platform-$(CONFIG_M520x)	:= 520x
777354b63   Greg Ungerer   [PATCH] m68knommu...
18
  platform-$(CONFIG_M523x)	:= 523x
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
20
21
22
23
  platform-$(CONFIG_M5249)	:= 5249
  platform-$(CONFIG_M527x)	:= 527x
  platform-$(CONFIG_M5272)	:= 5272
  platform-$(CONFIG_M528x)	:= 528x
  platform-$(CONFIG_M5307)	:= 5307
9a6404b4d   Matt Waddel   [PATCH] m68knommu...
24
  platform-$(CONFIG_M532x)	:= 532x
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
25
  platform-$(CONFIG_M5407)	:= 5407
5b2e6555a   Greg Ungerer   m68knommu: make C...
26
  platform-$(CONFIG_M54xx)	:= 54xx
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
27
28
29
  PLATFORM := $(platform-y)
  
  board-$(CONFIG_PILOT)		:= pilot
33e7a72a9   Greg Ungerer   m68knommu: add bu...
30
31
  board-$(CONFIG_UC5272)          := UC5272
  board-$(CONFIG_UC5282)          := UC5282
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
32
33
34
35
36
  board-$(CONFIG_UCSIMM)		:= ucsimm
  board-$(CONFIG_UCDIMM)		:= ucdimm
  board-$(CONFIG_UCQUICC)		:= uCquicc
  board-$(CONFIG_DRAGEN2)		:= de2
  board-$(CONFIG_ARNEWSH)		:= ARNEWSH
9ed8a0d6c   Greg Ungerer   [PATCH] m68knommu...
37
  board-$(CONFIG_FREESCALE)	:= FREESCALE
777354b63   Greg Ungerer   [PATCH] m68knommu...
38
  board-$(CONFIG_M5235EVB)	:= M5235EVB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
39
40
41
42
  board-$(CONFIG_M5271EVB)	:= M5271EVB
  board-$(CONFIG_M5275EVB)	:= M5275EVB
  board-$(CONFIG_M5282EVB)	:= M5282EVB
  board-$(CONFIG_ELITE)		:= eLITE
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
43
44
45
46
47
  board-$(CONFIG_NETtel)		:= NETtel
  board-$(CONFIG_SECUREEDGEMP3)	:= MP3
  board-$(CONFIG_CLEOPATRA)	:= CLEOPATRA
  board-$(CONFIG_senTec)		:= senTec
  board-$(CONFIG_SNEHA) 	        := SNEHA
9ed8a0d6c   Greg Ungerer   [PATCH] m68knommu...
48
  board-$(CONFIG_M5208EVB)	:= M5208EVB
777354b63   Greg Ungerer   [PATCH] m68knommu...
49
  board-$(CONFIG_MOD5272)		:= MOD5272
121036e5c   Daniel Alomar   [PATCH] m68knommu...
50
  board-$(CONFIG_AVNET)           := AVNET
ada8d218c   Wilson Callan   m68knommu: add ma...
51
  board-$(CONFIG_SAVANT)		:= SAVANT
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
52
53
54
55
56
57
58
59
60
61
62
63
  BOARD := $(board-y)
  
  model-$(CONFIG_RAMKERNEL)	:= ram
  model-$(CONFIG_ROMKERNEL)	:= rom
  MODEL := $(model-y)
  
  #
  # Some code support is grouped together for a common cpu-subclass (for
  # example all ColdFire cpu's are very similar). Determine the sub-class
  # for the selected cpu. ONLY need to define this for the non-base member
  # of the family.
  #
6d3867987   Greg Ungerer   m68knommu: modify...
64
65
66
67
68
69
70
71
72
73
74
  cpuclass-$(CONFIG_M5206)	:= coldfire
  cpuclass-$(CONFIG_M5206e)	:= coldfire
  cpuclass-$(CONFIG_M520x)	:= coldfire
  cpuclass-$(CONFIG_M523x)	:= coldfire
  cpuclass-$(CONFIG_M5249)	:= coldfire
  cpuclass-$(CONFIG_M527x)	:= coldfire
  cpuclass-$(CONFIG_M5272)	:= coldfire
  cpuclass-$(CONFIG_M528x)	:= coldfire
  cpuclass-$(CONFIG_M5307)	:= coldfire
  cpuclass-$(CONFIG_M532x)	:= coldfire
  cpuclass-$(CONFIG_M5407)	:= coldfire
5b2e6555a   Greg Ungerer   m68knommu: make C...
75
  cpuclass-$(CONFIG_M54xx)	:= coldfire
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
76
77
78
79
80
81
82
  cpuclass-$(CONFIG_M68328)	:= 68328
  cpuclass-$(CONFIG_M68EZ328)	:= 68328
  cpuclass-$(CONFIG_M68VZ328)	:= 68328
  cpuclass-$(CONFIG_M68360)	:= 68360
  CPUCLASS := $(cpuclass-y)
  
  ifneq ($(CPUCLASS),$(PLATFORM))
66d857b08   Greg Ungerer   m68k: merge m68k ...
83
  CLASSDIR := arch/m68k/platform/$(cpuclass-y)/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
84
85
86
87
88
89
90
  endif
  
  export PLATFORM BOARD MODEL CPUCLASS
  
  #
  # Some CFLAG additions based on specific CPU type.
  #
b4d63e8e7   Greg Ungerer   m68knommu: improv...
91
  cflags-$(CONFIG_M5206)		:= $(call cc-option,-mcpu=5206,-m5200)
c9942c567   Greg Ungerer   m68knommu: switch...
92
  cflags-$(CONFIG_M5206e)		:= $(call cc-option,-mcpu=5206e,-m5200)
b4d63e8e7   Greg Ungerer   m68knommu: improv...
93
  cflags-$(CONFIG_M520x)		:= $(call cc-option,-mcpu=5208,-m5200)
a6260ef84   Sebastian Siewior   m68knommu: add ff...
94
  cflags-$(CONFIG_M523x)		:= $(call cc-option,-mcpu=523x,-m5307)
b4d63e8e7   Greg Ungerer   m68knommu: improv...
95
  cflags-$(CONFIG_M5249)		:= $(call cc-option,-mcpu=5249,-m5200)
a6260ef84   Sebastian Siewior   m68knommu: add ff...
96
  cflags-$(CONFIG_M5271)		:= $(call cc-option,-mcpu=5271,-m5307)
eb79cbe23   Philip Nye   m68knommu: correc...
97
  cflags-$(CONFIG_M5272)		:= $(call cc-option,-mcpu=5272,-m5307)
a6260ef84   Sebastian Siewior   m68knommu: add ff...
98
  cflags-$(CONFIG_M5275)		:= $(call cc-option,-mcpu=5275,-m5307)
c9942c567   Greg Ungerer   m68knommu: switch...
99
100
  cflags-$(CONFIG_M528x)		:= $(call cc-option,-mcpu=528x,-m5307)
  cflags-$(CONFIG_M5307)		:= $(call cc-option,-mcpu=5307,-m5200)
a6260ef84   Sebastian Siewior   m68knommu: add ff...
101
  cflags-$(CONFIG_M532x)		:= $(call cc-option,-mcpu=532x,-m5307)
c9942c567   Greg Ungerer   m68knommu: switch...
102
103
  cflags-$(CONFIG_M5407)		:= $(call cc-option,-mcpu=5407,-m5200)
  cflags-$(CONFIG_M54xx)		:= $(call cc-option,-mcpu=5475,-m5200)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
104
105
106
107
  cflags-$(CONFIG_M68328)		:= -m68000
  cflags-$(CONFIG_M68EZ328)	:= -m68000
  cflags-$(CONFIG_M68VZ328)	:= -m68000
  cflags-$(CONFIG_M68360)		:= -m68332
222d394d3   Sam Ravnborg   kbuild: enable 'm...
108
  KBUILD_AFLAGS += $(cflags-y)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
109

a0f97e06a   Sam Ravnborg   kbuild: enable 'm...
110
111
112
  KBUILD_CFLAGS += $(cflags-y)
  KBUILD_CFLAGS += -D__linux__
  KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
113

66d857b08   Greg Ungerer   m68k: merge m68k ...
114
  head-y := arch/m68k/platform/$(cpuclass-y)/head.o
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
115

66d857b08   Greg Ungerer   m68k: merge m68k ...
116
117
  core-y	+= arch/m68k/kernel/ \
  	   arch/m68k/mm/ \
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
118
  	   $(CLASSDIR) \
66d857b08   Greg Ungerer   m68k: merge m68k ...
119
120
  	   arch/m68k/platform/$(PLATFORM)/
  libs-y	+= arch/m68k/lib/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
121

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
122
  archclean:
c48f484b9   Greg Ungerer   m68knommu: fix ma...
123