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

