diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-07-29 09:46:55 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-07-29 09:46:55 -0400 |
commit | 93dc544cf4892b9188d7d0d4946b0394020b4551 (patch) | |
tree | 5b518ad829e53e23304cc463e8013b66f1c087a0 /arch/sh/Makefile | |
parent | 1795cf48b322b4d19230a40dbe7181acedd34a94 (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/Makefile | 26 |
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' | |||
91 | LDFLAGS += -EB | 91 | LDFLAGS += -EB |
92 | endif | 92 | endif |
93 | 93 | ||
94 | |||
95 | head-y := arch/sh/kernel/init_task.o | 94 | head-y := arch/sh/kernel/init_task.o |
96 | head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o | 95 | head-$(CONFIG_SUPERH32) += arch/sh/kernel/head_32.o |
97 | head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o | 96 | head-$(CONFIG_SUPERH64) += arch/sh/kernel/head_64.o |
@@ -134,11 +133,22 @@ endif | |||
134 | # Companion chips | 133 | # Companion chips |
135 | core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ | 134 | core-$(CONFIG_HD6446X_SERIES) += arch/sh/cchips/hd6446x/ |
136 | 135 | ||
137 | cpuincdir-$(CONFIG_CPU_SH2) := cpu-sh2 | 136 | # |
138 | cpuincdir-$(CONFIG_CPU_SH2A) := cpu-sh2a | 137 | # CPU header paths |
139 | cpuincdir-$(CONFIG_CPU_SH3) := cpu-sh3 | 138 | # |
140 | cpuincdir-$(CONFIG_CPU_SH4) := cpu-sh4 | 139 | # These are ordered by optimization level. A CPU family that is a subset |
141 | cpuincdir-$(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 | # | ||
146 | cpuincdir-$(CONFIG_CPU_SH2A) += cpu-sh2a | ||
147 | cpuincdir-$(CONFIG_CPU_SH2) += cpu-sh2 | ||
148 | cpuincdir-$(CONFIG_CPU_SH3) += cpu-sh3 | ||
149 | cpuincdir-$(CONFIG_CPU_SH4) += cpu-sh4 | ||
150 | cpuincdir-$(CONFIG_CPU_SH5) += cpu-sh5 | ||
151 | cpuincdir-y += cpu-common # Must be last | ||
142 | 152 | ||
143 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) | 153 | libs-$(CONFIG_SUPERH32) := arch/sh/lib/ $(libs-y) |
144 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) | 154 | libs-$(CONFIG_SUPERH64) := arch/sh/lib64/ $(libs-y) |
@@ -149,8 +159,8 @@ drivers-$(CONFIG_OPROFILE) += arch/sh/oprofile/ | |||
149 | 159 | ||
150 | boot := arch/sh/boot | 160 | boot := arch/sh/boot |
151 | 161 | ||
152 | cflags-y += -Iarch/sh/include/$(cpuincdir-y) | 162 | cflags-y += $(foreach d, $(cpuincdir-y), -Iarch/sh/include/$(d)) \ |
153 | cflags-y += $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) | 163 | $(foreach d, $(machdir-y), -Iarch/sh/include/$(d)) |
154 | 164 | ||
155 | KBUILD_CFLAGS += -pipe $(cflags-y) | 165 | KBUILD_CFLAGS += -pipe $(cflags-y) |
156 | KBUILD_CPPFLAGS += $(cflags-y) | 166 | KBUILD_CPPFLAGS += $(cflags-y) |