diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-01-17 01:14:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-17 02:15:28 -0500 |
commit | cad8244840d1a148f638925758afd1cdf81fc839 (patch) | |
tree | 632c3f88b2fc4187fc0315f7183cd198c6bb2d42 /Makefile | |
parent | aa01666df35cd769c0957d4b3ae6ee99d680ab88 (diff) |
[PATCH] sh: Move CPU subtype configuration to its own Kconfig
Currently the CPU subtype options are cluttering up arch/sh/Kconfig somewhat.
Given that, this moves all of that in to its own arch/sh/mm/Kconfig. Things
like cache configuration are also moved to this new location.
This also adds support for strict CPU tuning on newer cores, which requires
the addition of as-option.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -263,6 +263,13 @@ export quiet Q KBUILD_VERBOSE | |||
263 | # cc support functions to be used (only) in arch/$(ARCH)/Makefile | 263 | # cc support functions to be used (only) in arch/$(ARCH)/Makefile |
264 | # See documentation in Documentation/kbuild/makefiles.txt | 264 | # See documentation in Documentation/kbuild/makefiles.txt |
265 | 265 | ||
266 | # as-option | ||
267 | # Usage: cflags-y += $(call as-option, -Wa$(comma)-isa=foo,) | ||
268 | |||
269 | as-option = $(shell if $(CC) $(CFLAGS) $(1) -Wa,-Z -c -o /dev/null \ | ||
270 | -xassembler /dev/null > /dev/null 2>&1; then echo "$(1)"; \ | ||
271 | else echo "$(2)"; fi ;) | ||
272 | |||
266 | # cc-option | 273 | # cc-option |
267 | # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) | 274 | # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) |
268 | 275 | ||