blob: 589613fed31d9535ee432541e9b73490c5436c79 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
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
Sebastian Siewiora6260ef2008-05-09 16:10:37 +020011KBUILD_DEFCONFIG := m5208evb_defconfig
12
Linus Torvalds1da177e2005-04-16 15:20:36 -070013platform-$(CONFIG_M68328) := 68328
14platform-$(CONFIG_M68EZ328) := 68EZ328
15platform-$(CONFIG_M68VZ328) := 68VZ328
16platform-$(CONFIG_M68360) := 68360
17platform-$(CONFIG_M5206) := 5206
18platform-$(CONFIG_M5206e) := 5206e
Greg Ungerer9ed8a0d2005-11-07 14:09:50 +100019platform-$(CONFIG_M520x) := 520x
Greg Ungerer777354b2005-09-02 10:42:52 +100020platform-$(CONFIG_M523x) := 523x
Linus Torvalds1da177e2005-04-16 15:20:36 -070021platform-$(CONFIG_M5249) := 5249
22platform-$(CONFIG_M527x) := 527x
23platform-$(CONFIG_M5272) := 5272
24platform-$(CONFIG_M528x) := 528x
25platform-$(CONFIG_M5307) := 5307
Matt Waddel9a6404b2006-06-27 12:50:53 +100026platform-$(CONFIG_M532x) := 532x
Linus Torvalds1da177e2005-04-16 15:20:36 -070027platform-$(CONFIG_M5407) := 5407
Greg Ungerer5b2e6552010-11-02 12:05:29 +100028platform-$(CONFIG_M54xx) := 54xx
Linus Torvalds1da177e2005-04-16 15:20:36 -070029PLATFORM := $(platform-y)
30
31board-$(CONFIG_PILOT) := pilot
Greg Ungerer33e7a722007-07-25 22:07:20 +100032board-$(CONFIG_UC5272) := UC5272
33board-$(CONFIG_UC5282) := UC5282
Linus Torvalds1da177e2005-04-16 15:20:36 -070034board-$(CONFIG_UCSIMM) := ucsimm
35board-$(CONFIG_UCDIMM) := ucdimm
36board-$(CONFIG_UCQUICC) := uCquicc
37board-$(CONFIG_DRAGEN2) := de2
38board-$(CONFIG_ARNEWSH) := ARNEWSH
Greg Ungerer9ed8a0d2005-11-07 14:09:50 +100039board-$(CONFIG_FREESCALE) := FREESCALE
Greg Ungerer777354b2005-09-02 10:42:52 +100040board-$(CONFIG_M5235EVB) := M5235EVB
Linus Torvalds1da177e2005-04-16 15:20:36 -070041board-$(CONFIG_M5271EVB) := M5271EVB
42board-$(CONFIG_M5275EVB) := M5275EVB
43board-$(CONFIG_M5282EVB) := M5282EVB
44board-$(CONFIG_ELITE) := eLITE
Linus Torvalds1da177e2005-04-16 15:20:36 -070045board-$(CONFIG_NETtel) := NETtel
46board-$(CONFIG_SECUREEDGEMP3) := MP3
47board-$(CONFIG_CLEOPATRA) := CLEOPATRA
48board-$(CONFIG_senTec) := senTec
49board-$(CONFIG_SNEHA) := SNEHA
Greg Ungerer9ed8a0d2005-11-07 14:09:50 +100050board-$(CONFIG_M5208EVB) := M5208EVB
Greg Ungerer777354b2005-09-02 10:42:52 +100051board-$(CONFIG_MOD5272) := MOD5272
Daniel Alomar121036e2006-06-27 12:49:11 +100052board-$(CONFIG_AVNET) := AVNET
Wilson Callanada8d212007-10-23 14:37:54 +100053board-$(CONFIG_SAVANT) := SAVANT
Linus Torvalds1da177e2005-04-16 15:20:36 -070054BOARD := $(board-y)
55
56model-$(CONFIG_RAMKERNEL) := ram
57model-$(CONFIG_ROMKERNEL) := rom
58MODEL := $(model-y)
59
60#
61# Some code support is grouped together for a common cpu-subclass (for
62# example all ColdFire cpu's are very similar). Determine the sub-class
63# for the selected cpu. ONLY need to define this for the non-base member
64# of the family.
65#
Greg Ungerer6d386792008-02-01 17:37:56 +100066cpuclass-$(CONFIG_M5206) := coldfire
67cpuclass-$(CONFIG_M5206e) := coldfire
68cpuclass-$(CONFIG_M520x) := coldfire
69cpuclass-$(CONFIG_M523x) := coldfire
70cpuclass-$(CONFIG_M5249) := coldfire
71cpuclass-$(CONFIG_M527x) := coldfire
72cpuclass-$(CONFIG_M5272) := coldfire
73cpuclass-$(CONFIG_M528x) := coldfire
74cpuclass-$(CONFIG_M5307) := coldfire
75cpuclass-$(CONFIG_M532x) := coldfire
76cpuclass-$(CONFIG_M5407) := coldfire
Greg Ungerer5b2e6552010-11-02 12:05:29 +100077cpuclass-$(CONFIG_M54xx) := coldfire
Linus Torvalds1da177e2005-04-16 15:20:36 -070078cpuclass-$(CONFIG_M68328) := 68328
79cpuclass-$(CONFIG_M68EZ328) := 68328
80cpuclass-$(CONFIG_M68VZ328) := 68328
81cpuclass-$(CONFIG_M68360) := 68360
82CPUCLASS := $(cpuclass-y)
83
84ifneq ($(CPUCLASS),$(PLATFORM))
85CLASSDIR := arch/m68knommu/platform/$(cpuclass-y)/
86endif
87
88export PLATFORM BOARD MODEL CPUCLASS
89
90#
91# Some CFLAG additions based on specific CPU type.
92#
Greg Ungererb4d63e82009-03-30 10:29:45 +100093cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200)
Greg Ungererc9942c52010-11-18 12:52:08 +100094cflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200)
Greg Ungererb4d63e82009-03-30 10:29:45 +100095cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200)
Sebastian Siewiora6260ef2008-05-09 16:10:37 +020096cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307)
Greg Ungererb4d63e82009-03-30 10:29:45 +100097cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200)
Sebastian Siewiora6260ef2008-05-09 16:10:37 +020098cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307)
Philip Nyeeb79cbe2010-01-12 10:18:03 +100099cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307)
Sebastian Siewiora6260ef2008-05-09 16:10:37 +0200100cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307)
Greg Ungererc9942c52010-11-18 12:52:08 +1000101cflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307)
102cflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200)
Sebastian Siewiora6260ef2008-05-09 16:10:37 +0200103cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307)
Greg Ungererc9942c52010-11-18 12:52:08 +1000104cflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200)
105cflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106cflags-$(CONFIG_M68328) := -m68000
107cflags-$(CONFIG_M68EZ328) := -m68000
108cflags-$(CONFIG_M68VZ328) := -m68000
109cflags-$(CONFIG_M68360) := -m68332
110
Sam Ravnborg222d3942007-10-15 21:59:31 +0200111KBUILD_AFLAGS += $(cflags-y)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112
Sam Ravnborga0f97e02007-10-14 22:21:35 +0200113KBUILD_CFLAGS += $(cflags-y)
114KBUILD_CFLAGS += -D__linux__
115KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116
117head-y := arch/m68knommu/platform/$(cpuclass-y)/head.o
118
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119core-y += arch/m68knommu/kernel/ \
120 arch/m68knommu/mm/ \
121 $(CLASSDIR) \
122 arch/m68knommu/platform/$(PLATFORM)/
123libs-y += arch/m68knommu/lib/
124
Linus Torvalds1da177e2005-04-16 15:20:36 -0700125archclean:
Greg Ungererc48f4842007-10-23 14:37:54 +1000126