2005-04-16 16:20:36 -06:00
|
|
|
#
|
2011-03-21 21:39:27 -06:00
|
|
|
# arch/m68k/Makefile
|
2005-04-16 16:20:36 -06:00
|
|
|
#
|
|
|
|
# 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
|
2005-11-06 21:09:50 -07:00
|
|
|
platform-$(CONFIG_M520x) := 520x
|
2005-09-01 18:42:52 -06:00
|
|
|
platform-$(CONFIG_M523x) := 523x
|
2005-04-16 16:20:36 -06:00
|
|
|
platform-$(CONFIG_M5249) := 5249
|
|
|
|
platform-$(CONFIG_M527x) := 527x
|
|
|
|
platform-$(CONFIG_M5272) := 5272
|
|
|
|
platform-$(CONFIG_M528x) := 528x
|
|
|
|
platform-$(CONFIG_M5307) := 5307
|
2006-06-26 20:50:53 -06:00
|
|
|
platform-$(CONFIG_M532x) := 532x
|
2005-04-16 16:20:36 -06:00
|
|
|
platform-$(CONFIG_M5407) := 5407
|
2010-11-01 20:05:29 -06:00
|
|
|
platform-$(CONFIG_M54xx) := 54xx
|
2005-04-16 16:20:36 -06:00
|
|
|
PLATFORM := $(platform-y)
|
|
|
|
|
|
|
|
board-$(CONFIG_PILOT) := pilot
|
2007-07-25 06:07:20 -06:00
|
|
|
board-$(CONFIG_UC5272) := UC5272
|
|
|
|
board-$(CONFIG_UC5282) := UC5282
|
2005-04-16 16:20:36 -06:00
|
|
|
board-$(CONFIG_UCSIMM) := ucsimm
|
|
|
|
board-$(CONFIG_UCDIMM) := ucdimm
|
|
|
|
board-$(CONFIG_UCQUICC) := uCquicc
|
|
|
|
board-$(CONFIG_DRAGEN2) := de2
|
|
|
|
board-$(CONFIG_ARNEWSH) := ARNEWSH
|
2005-11-06 21:09:50 -07:00
|
|
|
board-$(CONFIG_FREESCALE) := FREESCALE
|
2005-09-01 18:42:52 -06:00
|
|
|
board-$(CONFIG_M5235EVB) := M5235EVB
|
2005-04-16 16:20:36 -06:00
|
|
|
board-$(CONFIG_M5271EVB) := M5271EVB
|
|
|
|
board-$(CONFIG_M5275EVB) := M5275EVB
|
|
|
|
board-$(CONFIG_M5282EVB) := M5282EVB
|
|
|
|
board-$(CONFIG_ELITE) := eLITE
|
|
|
|
board-$(CONFIG_NETtel) := NETtel
|
|
|
|
board-$(CONFIG_SECUREEDGEMP3) := MP3
|
|
|
|
board-$(CONFIG_CLEOPATRA) := CLEOPATRA
|
|
|
|
board-$(CONFIG_senTec) := senTec
|
|
|
|
board-$(CONFIG_SNEHA) := SNEHA
|
2005-11-06 21:09:50 -07:00
|
|
|
board-$(CONFIG_M5208EVB) := M5208EVB
|
2005-09-01 18:42:52 -06:00
|
|
|
board-$(CONFIG_MOD5272) := MOD5272
|
2006-06-26 20:49:11 -06:00
|
|
|
board-$(CONFIG_AVNET) := AVNET
|
2007-10-22 22:37:54 -06:00
|
|
|
board-$(CONFIG_SAVANT) := SAVANT
|
2005-04-16 16:20:36 -06:00
|
|
|
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.
|
|
|
|
#
|
2008-02-01 00:37:56 -07:00
|
|
|
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
|
2010-11-01 20:05:29 -06:00
|
|
|
cpuclass-$(CONFIG_M54xx) := coldfire
|
2005-04-16 16:20:36 -06:00
|
|
|
cpuclass-$(CONFIG_M68328) := 68328
|
|
|
|
cpuclass-$(CONFIG_M68EZ328) := 68328
|
|
|
|
cpuclass-$(CONFIG_M68VZ328) := 68328
|
|
|
|
cpuclass-$(CONFIG_M68360) := 68360
|
|
|
|
CPUCLASS := $(cpuclass-y)
|
|
|
|
|
|
|
|
ifneq ($(CPUCLASS),$(PLATFORM))
|
2011-03-21 21:39:27 -06:00
|
|
|
CLASSDIR := arch/m68k/platform/$(cpuclass-y)/
|
2005-04-16 16:20:36 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
export PLATFORM BOARD MODEL CPUCLASS
|
|
|
|
|
|
|
|
#
|
|
|
|
# Some CFLAG additions based on specific CPU type.
|
|
|
|
#
|
2009-03-29 18:29:45 -06:00
|
|
|
cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200)
|
2010-11-17 19:52:08 -07:00
|
|
|
cflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200)
|
2009-03-29 18:29:45 -06:00
|
|
|
cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200)
|
2008-05-09 08:10:37 -06:00
|
|
|
cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307)
|
2009-03-29 18:29:45 -06:00
|
|
|
cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200)
|
2008-05-09 08:10:37 -06:00
|
|
|
cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307)
|
2010-01-11 17:18:03 -07:00
|
|
|
cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307)
|
2008-05-09 08:10:37 -06:00
|
|
|
cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307)
|
2010-11-17 19:52:08 -07:00
|
|
|
cflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307)
|
|
|
|
cflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200)
|
2008-05-09 08:10:37 -06:00
|
|
|
cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307)
|
2010-11-17 19:52:08 -07:00
|
|
|
cflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200)
|
|
|
|
cflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200)
|
2005-04-16 16:20:36 -06:00
|
|
|
cflags-$(CONFIG_M68328) := -m68000
|
|
|
|
cflags-$(CONFIG_M68EZ328) := -m68000
|
|
|
|
cflags-$(CONFIG_M68VZ328) := -m68000
|
|
|
|
cflags-$(CONFIG_M68360) := -m68332
|
|
|
|
|
2007-10-15 13:59:31 -06:00
|
|
|
KBUILD_AFLAGS += $(cflags-y)
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2007-10-14 14:21:35 -06:00
|
|
|
KBUILD_CFLAGS += $(cflags-y)
|
|
|
|
KBUILD_CFLAGS += -D__linux__
|
|
|
|
KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2011-03-21 21:39:27 -06:00
|
|
|
head-y := arch/m68k/platform/$(cpuclass-y)/head.o
|
2005-04-16 16:20:36 -06:00
|
|
|
|
2011-03-21 21:39:27 -06:00
|
|
|
core-y += arch/m68k/kernel/ \
|
|
|
|
arch/m68k/mm/ \
|
2005-04-16 16:20:36 -06:00
|
|
|
$(CLASSDIR) \
|
2011-03-21 21:39:27 -06:00
|
|
|
arch/m68k/platform/$(PLATFORM)/
|
|
|
|
libs-y += arch/m68k/lib/
|
2005-04-16 16:20:36 -06:00
|
|
|
|
|
|
|
archclean:
|
2007-10-22 22:37:54 -06:00
|
|
|
|