Makefile 3.56 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#
# arch/m68knommu/Makefile
#
# 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
platform-$(CONFIG_M5206e)	:= 5206e
17
platform-$(CONFIG_M520x)	:= 520x
18
platform-$(CONFIG_M523x)	:= 523x
Linus Torvalds's avatar
Linus Torvalds committed
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
24
platform-$(CONFIG_M532x)	:= 532x
Linus Torvalds's avatar
Linus Torvalds committed
25 26 27 28
platform-$(CONFIG_M5407)	:= 5407
PLATFORM := $(platform-y)

board-$(CONFIG_PILOT)		:= pilot
29 30
board-$(CONFIG_UC5272)          := UC5272
board-$(CONFIG_UC5282)          := UC5282
Linus Torvalds's avatar
Linus Torvalds committed
31 32 33 34 35
board-$(CONFIG_UCSIMM)		:= ucsimm
board-$(CONFIG_UCDIMM)		:= ucdimm
board-$(CONFIG_UCQUICC)		:= uCquicc
board-$(CONFIG_DRAGEN2)		:= de2
board-$(CONFIG_ARNEWSH)		:= ARNEWSH
36
board-$(CONFIG_FREESCALE)	:= FREESCALE
37
board-$(CONFIG_M5235EVB)	:= M5235EVB
Linus Torvalds's avatar
Linus Torvalds committed
38 39 40 41 42 43 44 45 46 47
board-$(CONFIG_M5271EVB)	:= M5271EVB
board-$(CONFIG_M5275EVB)	:= M5275EVB
board-$(CONFIG_M5282EVB)	:= M5282EVB
board-$(CONFIG_ELITE)		:= eLITE
board-$(CONFIG_eLIA)		:= eLIA
board-$(CONFIG_NETtel)		:= NETtel
board-$(CONFIG_SECUREEDGEMP3)	:= MP3
board-$(CONFIG_CLEOPATRA)	:= CLEOPATRA
board-$(CONFIG_senTec)		:= senTec
board-$(CONFIG_SNEHA) 	        := SNEHA
48
board-$(CONFIG_M5208EVB)	:= M5208EVB
49
board-$(CONFIG_MOD5272)		:= MOD5272
50
board-$(CONFIG_AVNET)           := AVNET
51
board-$(CONFIG_SAVANT)		:= SAVANT
Linus Torvalds's avatar
Linus Torvalds committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65
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.
#
cpuclass-$(CONFIG_M5206)	:= 5307
cpuclass-$(CONFIG_M5206e)	:= 5307
66
cpuclass-$(CONFIG_M520x)	:= 5307
67
cpuclass-$(CONFIG_M523x)	:= 5307
Linus Torvalds's avatar
Linus Torvalds committed
68 69 70 71 72
cpuclass-$(CONFIG_M5249)	:= 5307
cpuclass-$(CONFIG_M527x)	:= 5307
cpuclass-$(CONFIG_M5272)	:= 5307
cpuclass-$(CONFIG_M528x)	:= 5307
cpuclass-$(CONFIG_M5307)	:= 5307
73
cpuclass-$(CONFIG_M532x)	:= 5307
Linus Torvalds's avatar
Linus Torvalds committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
cpuclass-$(CONFIG_M5407)	:= 5307
cpuclass-$(CONFIG_M68328)	:= 68328
cpuclass-$(CONFIG_M68EZ328)	:= 68328
cpuclass-$(CONFIG_M68VZ328)	:= 68328
cpuclass-$(CONFIG_M68360)	:= 68360
CPUCLASS := $(cpuclass-y)

ifneq ($(CPUCLASS),$(PLATFORM))
CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
endif

export PLATFORM BOARD MODEL CPUCLASS

#
# Some CFLAG additions based on specific CPU type.
#
90 91 92 93 94 95 96 97 98 99 100
cflags-$(CONFIG_M5206)		:= -m5200
cflags-$(CONFIG_M5206e)		:= -m5200
cflags-$(CONFIG_M520x)		:= -m5307
cflags-$(CONFIG_M523x)		:= -m5307
cflags-$(CONFIG_M5249)		:= -m5200
cflags-$(CONFIG_M527x)		:= -m5307
cflags-$(CONFIG_M5272)		:= -m5307
cflags-$(CONFIG_M528x)		:= -m5307
cflags-$(CONFIG_M5307)		:= -m5307
cflags-$(CONFIG_M532x)		:= -m5307
cflags-$(CONFIG_M5407)		:= -m5200
Linus Torvalds's avatar
Linus Torvalds committed
101 102 103 104 105
cflags-$(CONFIG_M68328)		:= -m68000
cflags-$(CONFIG_M68EZ328)	:= -m68000
cflags-$(CONFIG_M68VZ328)	:= -m68000
cflags-$(CONFIG_M68360)		:= -m68332

106
KBUILD_AFLAGS += $(cflags-y)
Linus Torvalds's avatar
Linus Torvalds committed
107

108 109 110
KBUILD_CFLAGS += $(cflags-y)
KBUILD_CFLAGS += -D__linux__
KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
Linus Torvalds's avatar
Linus Torvalds committed
111 112 113 114 115 116 117 118 119 120

head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o

core-y	+= arch/m68knommu/kernel/ \
	   arch/m68knommu/mm/ \
	   $(CLASSDIR) \
	   arch/m68knommu/platform/$(PLATFORM)/
libs-y	+= arch/m68knommu/lib/

archclean:
121
	$(Q)$(MAKE) $(clean)=arch/m68knommu/boot