summaryrefslogtreecommitdiffstats
path: root/arch/s390/Makefile
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-10-30 12:12:50 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-31 09:54:01 +0100
commit1db9e0513d7478f6c80ca0bc4f58f53fe49e27f8 (patch)
tree511995f3ff6a9577b8a93a6eb2192febe8a8f353 /arch/s390/Makefile
parents390/percpu: remove this_cpu_xor() implementation (diff)
downloadlinux-1db9e0513d7478f6c80ca0bc4f58f53fe49e27f8.tar.xz
linux-1db9e0513d7478f6c80ca0bc4f58f53fe49e27f8.zip
s390: allow to set gcc -mtune flag
Add a new Kconfig choice group which allows to configure how gcc should tune the generated code (via -mtune option). By default the -mtune parameter will match the -march parameter. This is a rather large patch, but I wouldn't know how to make this shorter unfortunately. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r--arch/s390/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index ecc9d4f73cc6..874e6d6e9c5f 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -43,6 +43,14 @@ cflags-$(CONFIG_MARCH_Z10) += -march=z10
cflags-$(CONFIG_MARCH_Z196) += -march=z196
cflags-$(CONFIG_MARCH_ZEC12) += -march=zEC12
+cflags-$(CONFIG_MARCH_G5_TUNE) += -mtune=g5
+cflags-$(CONFIG_MARCH_Z900_TUNE) += -mtune=z900
+cflags-$(CONFIG_MARCH_Z990_TUNE) += -mtune=z990
+cflags-$(CONFIG_MARCH_Z9_109_TUNE) += -mtune=z9-109
+cflags-$(CONFIG_MARCH_Z10_TUNE) += -mtune=z10
+cflags-$(CONFIG_MARCH_Z196_TUNE) += -mtune=z196
+cflags-$(CONFIG_MARCH_ZEC12_TUNE) += -mtune=zEC12
+
#KBUILD_IMAGE is necessary for make rpm
KBUILD_IMAGE :=arch/s390/boot/image