initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / m68knommu / Makefile
blobe6be8b778a97ca6e0302e68ef830f924ba1b6e20
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_M5272) := 5272
19 platform-$(CONFIG_M5282) := 5282
20 platform-$(CONFIG_M5307) := 5307
21 platform-$(CONFIG_M5407) := 5407
22 PLATFORM := $(platform-y)
24 board-$(CONFIG_PILOT) := pilot
25 board-$(CONFIG_UCSIMM) := ucsimm
26 board-$(CONFIG_UCDIMM) := ucdimm
27 board-$(CONFIG_UCQUICC) := uCquicc
28 board-$(CONFIG_DRAGEN2) := de2
29 board-$(CONFIG_ARNEWSH) := ARNEWSH
30 board-$(CONFIG_MOTOROLA) := MOTOROLA
31 board-$(CONFIG_ELITE) := eLITE
32 board-$(CONFIG_eLIA) := eLIA
33 board-$(CONFIG_NETtel) := NETtel
34 board-$(CONFIG_SECUREEDGEMP3) := MP3
35 board-$(CONFIG_CLEOPATRA) := CLEOPATRA
36 board-$(CONFIG_senTec) := senTec
37 BOARD := $(board-y)
39 model-$(CONFIG_RAMKERNEL) := ram
40 model-$(CONFIG_ROMKERNEL) := rom
41 model-$(CONFIG_HIMEMKERNEL) := himem
42 MODEL := $(model-y)
45 # Some code support is grouped together for a common cpu-subclass (for
46 # example all ColdFire cpu's are very similar). Determine the sub-class
47 # for the selected cpu. ONLY need to define this for the non-base member
48 # of the family.
50 cpuclass-$(CONFIG_M5206) := 5307
51 cpuclass-$(CONFIG_M5206e) := 5307
52 cpuclass-$(CONFIG_M5249) := 5307
53 cpuclass-$(CONFIG_M5272) := 5307
54 cpuclass-$(CONFIG_M5282) := 5307
55 cpuclass-$(CONFIG_M5407) := 5307
56 cpuclass-$(CONFIG_M68EZ328) := 68328
57 cpuclass-$(CONFIG_M68VZ328) := 68328
58 CPUCLASS := $(cpuclass-y)
60 ifneq ($(CPUCLASS),)
61 CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
62 endif
64 export PLATFORM BOARD MODEL CPUCLASS
67 # Some CFLAG additions based on specific CPU type.
69 cflags-$(CONFIG_M5206) := -m5200 -Wa,-S -Wa,-m5200
70 cflags-$(CONFIG_M5206e) := -m5200 -Wa,-S -Wa,-m5200
71 cflags-$(CONFIG_M5249) := -m5200 -Wa,-S -Wa,-m5200
72 cflags-$(CONFIG_M5272) := -m5307 -Wa,-S -Wa,-m5307
73 cflags-$(CONFIG_M5282) := -m5307 -Wa,-S -Wa,-m5307
74 cflags-$(CONFIG_M5307) := -m5307 -Wa,-S -Wa,-m5307
75 cflags-$(CONFIG_M5407) := -m5200 -Wa,-S -Wa,-m5200
76 cflags-$(CONFIG_M68328) := -m68000
77 cflags-$(CONFIG_M68EZ328) := -m68000
78 cflags-$(CONFIG_M68VZ328) := -m68000
79 cflags-$(CONFIG_M68360) := -m68332
81 AFLAGS += $(cflags-y)
83 CFLAGS += $(cflags-y)
84 CFLAGS += -fno-builtin
85 CFLAGS += -O2 -g
86 CFLAGS += -D__linux__
87 CFLAGS += -DUTS_SYSNAME=\"uClinux\"
89 head-y := arch/m68knommu/platform/$(platform-y)/$(board-y)/crt0_$(model-y).o
91 CLEAN_FILES := include/asm-$(ARCH)/asm-offsets.h \
92 arch/$(ARCH)/kernel/asm-offsets.s
94 core-y += arch/m68knommu/kernel/ \
95 arch/m68knommu/mm/ \
96 $(CLASSDIR) \
97 arch/m68knommu/platform/$(PLATFORM)/
98 libs-y += arch/m68knommu/lib/
100 prepare: include/asm-$(ARCH)/asm-offsets.h
102 archclean:
103 $(call descend arch/$(ARCH)/boot, subdirclean)
105 include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
106 include/asm include/linux/version.h \
107 include/config/MARKER
108 $(call filechk,gen-asm-offsets)