aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2013-09-11 03:29:33 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-24 11:16:44 -0400
commitfaf499dfccfd88d842164078917e7b6aae9a3cdb (patch)
tree798a01491588f36d1cd16452f6a5f2f7309a9555
parente344e52c7c6d6ab277daa83211972f801af2f9af (diff)
s390: always set -march compiler option
Currently we only set the -march compiler option if the kbuild system figured out that the compiler actually supports the selected architecture (cc-option test). In result this means that no -march compiler option is set when an unsupported cpu architecture of the current compiler is selected. The kernel compile will afterwards succeed but with the default architecture instead of the (unsupported) selected one. Change this behaviour, so compiles will fail if the compiler does not support the selected cpu architecture. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r--arch/s390/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index a7d68a467ce8..ecc9d4f73cc6 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -35,13 +35,13 @@ endif
35 35
36export LD_BFD 36export LD_BFD
37 37
38cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) 38cflags-$(CONFIG_MARCH_G5) += -march=g5
39cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900) 39cflags-$(CONFIG_MARCH_Z900) += -march=z900
40cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990) 40cflags-$(CONFIG_MARCH_Z990) += -march=z990
41cflags-$(CONFIG_MARCH_Z9_109) += $(call cc-option,-march=z9-109) 41cflags-$(CONFIG_MARCH_Z9_109) += -march=z9-109
42cflags-$(CONFIG_MARCH_Z10) += $(call cc-option,-march=z10) 42cflags-$(CONFIG_MARCH_Z10) += -march=z10
43cflags-$(CONFIG_MARCH_Z196) += $(call cc-option,-march=z196) 43cflags-$(CONFIG_MARCH_Z196) += -march=z196
44cflags-$(CONFIG_MARCH_ZEC12) += $(call cc-option,-march=zEC12) 44cflags-$(CONFIG_MARCH_ZEC12) += -march=zEC12
45 45
46#KBUILD_IMAGE is necessary for make rpm 46#KBUILD_IMAGE is necessary for make rpm
47KBUILD_IMAGE :=arch/s390/boot/image 47KBUILD_IMAGE :=arch/s390/boot/image