Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / m68knommu / Makefile
bloba254aa9d49986eb2ff03137fa72bd96b99ba6949
2 # arch/m68knommu/Makefile
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.
8 # (C) Copyright 2002, Greg Ungerer <gerg@snapgear.com>
11 platform-$(CONFIG_M68328) := 68328
12 platform-$(CONFIG_M68EZ328) := 68EZ328
13 platform-$(CONFIG_M68VZ328) := 68VZ328
14 platform-$(CONFIG_M68360) := 68360
15 platform-$(CONFIG_M5206) := 5206
16 platform-$(CONFIG_M5206e) := 5206e
17 platform-$(CONFIG_M5249) := 5249
18 platform-$(CONFIG_M527x) := 527x
19 platform-$(CONFIG_M5272) := 5272
20 platform-$(CONFIG_M528x) := 528x
21 platform-$(CONFIG_M5307) := 5307
22 platform-$(CONFIG_M5407) := 5407
23 PLATFORM := $(platform-y)
25 board-$(CONFIG_PILOT) := pilot
26 board-$(CONFIG_UCSIMM) := ucsimm
27 board-$(CONFIG_UCDIMM) := ucdimm
28 board-$(CONFIG_UCQUICC) := uCquicc
29 board-$(CONFIG_DRAGEN2) := de2
30 board-$(CONFIG_ARNEWSH) := ARNEWSH
31 board-$(CONFIG_MOTOROLA) := MOTOROLA
32 board-$(CONFIG_M5271EVB) := M5271EVB
33 board-$(CONFIG_M5275EVB) := M5275EVB
34 board-$(CONFIG_M5282EVB) := M5282EVB
35 board-$(CONFIG_ELITE) := eLITE
36 board-$(CONFIG_eLIA) := eLIA
37 board-$(CONFIG_NETtel) := NETtel
38 board-$(CONFIG_SECUREEDGEMP3) := MP3
39 board-$(CONFIG_CLEOPATRA) := CLEOPATRA
40 board-$(CONFIG_senTec) := senTec
41 board-$(CONFIG_SNEHA) := SNEHA
42 BOARD := $(board-y)
44 model-$(CONFIG_RAMKERNEL) := ram
45 model-$(CONFIG_ROMKERNEL) := rom
46 MODEL := $(model-y)
49 # Some code support is grouped together for a common cpu-subclass (for
50 # example all ColdFire cpu's are very similar). Determine the sub-class
51 # for the selected cpu. ONLY need to define this for the non-base member
52 # of the family.
54 cpuclass-$(CONFIG_M5206) := 5307
55 cpuclass-$(CONFIG_M5206e) := 5307
56 cpuclass-$(CONFIG_M5249) := 5307
57 cpuclass-$(CONFIG_M527x) := 5307
58 cpuclass-$(CONFIG_M5272) := 5307
59 cpuclass-$(CONFIG_M528x) := 5307
60 cpuclass-$(CONFIG_M5307) := 5307
61 cpuclass-$(CONFIG_M5407) := 5307
62 cpuclass-$(CONFIG_M68328) := 68328
63 cpuclass-$(CONFIG_M68EZ328) := 68328
64 cpuclass-$(CONFIG_M68VZ328) := 68328
65 cpuclass-$(CONFIG_M68360) := 68360
66 CPUCLASS := $(cpuclass-y)
68 ifneq ($(CPUCLASS),$(PLATFORM))
69 CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
70 endif
72 export PLATFORM BOARD MODEL CPUCLASS
75 # Some CFLAG additions based on specific CPU type.
77 cflags-$(CONFIG_M5206) := -m5200 -Wa,-S -Wa,-m5200
78 cflags-$(CONFIG_M5206e) := -m5200 -Wa,-S -Wa,-m5200
79 cflags-$(CONFIG_M5249) := -m5200 -Wa,-S -Wa,-m5200
80 cflags-$(CONFIG_M527x) := -m5307 -Wa,-S -Wa,-m5307
81 cflags-$(CONFIG_M5272) := -m5307 -Wa,-S -Wa,-m5307
82 cflags-$(CONFIG_M528x) := -m5307 -Wa,-S -Wa,-m5307
83 cflags-$(CONFIG_M5307) := -m5307 -Wa,-S -Wa,-m5307
84 cflags-$(CONFIG_M5407) := -m5200 -Wa,-S -Wa,-m5200
85 cflags-$(CONFIG_M68328) := -m68000
86 cflags-$(CONFIG_M68EZ328) := -m68000
87 cflags-$(CONFIG_M68VZ328) := -m68000
88 cflags-$(CONFIG_M68360) := -m68332
90 AFLAGS += $(cflags-y)
92 CFLAGS += $(cflags-y)
93 CFLAGS += -fno-builtin
94 CFLAGS += -O1 -g
95 CFLAGS += -D__linux__
96 CFLAGS += -DUTS_SYSNAME=\"uClinux\"
98 head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
100 CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
101 arch/$(ARCH)/kernel/asm-offsets.s
103 core-y += arch/m68knommu/kernel/ \
104 arch/m68knommu/mm/ \
105 $(CLASSDIR) \
106 arch/m68knommu/platform/$(PLATFORM)/
107 libs-y += arch/m68knommu/lib/
109 prepare: include/asm-$(ARCH)/asm-offsets.h
111 archclean:
112 $(call descend arch/$(ARCH)/boot, subdirclean)
114 include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
115 include/asm include/linux/version.h \
116 include/config/MARKER
117 $(call filechk,gen-asm-offsets)