aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/Makefile
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-07-29 09:46:55 -0400
committerPaul Mundt <lethal@linux-sh.org>2008-07-29 09:46:55 -0400
commit93dc544cf4892b9188d7d0d4946b0394020b4551 (patch)
tree5b518ad829e53e23304cc463e8013b66f1c087a0 /arch/sh/Makefile
parent1795cf48b322b4d19230a40dbe7181acedd34a94 (diff)
sh: Provide common CPU headers, prune the SH-2 and SH-2A directories.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Makefile')
-rw-r--r--arch/sh/Makefile26
1 files changed, 18 insertions, 8 deletions
diff --git a/arch/sh/Makefile b/arch/sh/Makefile
index fb3b65ed2910..fafc01236f6a 100644
--- a/arch/sh/Makefile
+++ b/arch/sh/Makefile
@@ -91,7 +91,6 @@ LDFLAGS_vmlinux += --defsym 'jiffies=jiffies_64+4'
91LDFLAGS += -EB 91LDFLAGS += -EB
92endif 92endif
93 93
94
95head-y := arch/sh/kernel/init_task.o 94head-y := arch/sh/kernel/init_task.o
96head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o 95head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o
97head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o 96head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o
@@ -134,11 +133,22 @@ endif
134# Companion chips 133# Companion chips
135core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ 134core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/
136 135
137cpuincdir-$(CONFIG_CPU_SH2) := cpu-sh2 136#
138cpuincdir-$(CONFIG_CPU_SH2A) := cpu-sh2a 137# CPU header paths
139cpuincdir-$(CONFIG_CPU_SH3) := cpu-sh3 138#
140cpuincdir-$(CONFIG_CPU_SH4) := cpu-sh4 139# These are ordered by optimization level. A CPU family that is a subset
141cpuincdir-$(CONFIG_CPU_SH5) := cpu-sh5 140# of another (ie, SH-2A / SH-2), is picked up first, with increasing
141# levels of genericness if nothing more suitable is situated in the
142# hierarchy.
143#
144# As an example, in order of preference, SH-2A > SH-2 > common definitions.
145#
146cpuincdir-$(CONFIG_CPU_SH2A) += cpu-sh2a
147cpuincdir-$(CONFIG_CPU_SH2) += cpu-sh2
148cpuincdir-$(CONFIG_CPU_SH3) += cpu-sh3
149cpuincdir-$(CONFIG_CPU_SH4) += cpu-sh4
150cpuincdir-$(CONFIG_CPU_SH5) += cpu-sh5
151cpuincdir-y += cpu-common # Must be last
142 152
143libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) 153libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y)
144libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) 154libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y)
@@ -149,8 +159,8 @@ drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/
149 159
150boot := arch/sh/boot 160boot := arch/sh/boot
151 161
152cflags-y += -Iarch/sh/include/$(cpuincdir-y) 162cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \
153cflags-y += $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) 163 $(foreach d, $(machdir-y), -Iarch/sh/include/$(d))
154 164
155KBUILD_CFLAGS += -pipe $(cflags-y) 165KBUILD_CFLAGS += -pipe $(cflags-y)
156KBUILD_CPPFLAGS += $(cflags-y) 166KBUILD_CPPFLAGS += $(cflags-y)