aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r--arch/s390/Makefile16
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index acb6859c6a95..667b1bca5681 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -13,15 +13,6 @@
13# Copyright (C) 1994 by Linus Torvalds 13# Copyright (C) 1994 by Linus Torvalds
14# 14#
15 15
16ifndef CONFIG_64BIT
17LD_BFD := elf32-s390
18LDFLAGS := -m elf_s390
19KBUILD_CFLAGS += -m31
20KBUILD_AFLAGS += -m31
21UTS_MACHINE := s390
22STACK_SIZE := 8192
23CHECKFLAGS += -D__s390__ -msize-long
24else
25LD_BFD := elf64-s390 16LD_BFD := elf64-s390
26LDFLAGS := -m elf64_s390 17LDFLAGS := -m elf64_s390
27KBUILD_AFLAGS_MODULE += -fPIC 18KBUILD_AFLAGS_MODULE += -fPIC
@@ -31,11 +22,9 @@ KBUILD_AFLAGS += -m64
31UTS_MACHINE := s390x 22UTS_MACHINE := s390x
32STACK_SIZE := 16384 23STACK_SIZE := 16384
33CHECKFLAGS += -D__s390__ -D__s390x__ 24CHECKFLAGS += -D__s390__ -D__s390x__
34endif
35 25
36export LD_BFD 26export LD_BFD
37 27
38mflags-$(CONFIG_MARCH_G5) := -march=g5
39mflags-$(CONFIG_MARCH_Z900) := -march=z900 28mflags-$(CONFIG_MARCH_Z900) := -march=z900
40mflags-$(CONFIG_MARCH_Z990) := -march=z990 29mflags-$(CONFIG_MARCH_Z990) := -march=z990
41mflags-$(CONFIG_MARCH_Z9_109) := -march=z9-109 30mflags-$(CONFIG_MARCH_Z9_109) := -march=z9-109
@@ -47,7 +36,6 @@ mflags-$(CONFIG_MARCH_Z13) := -march=z13
47aflags-y += $(mflags-y) 36aflags-y += $(mflags-y)
48cflags-y += $(mflags-y) 37cflags-y += $(mflags-y)
49 38
50cflags-$(CONFIG_MARCH_G5_TUNE) += -mtune=g5
51cflags-$(CONFIG_MARCH_Z900_TUNE) += -mtune=z900 39cflags-$(CONFIG_MARCH_Z900_TUNE) += -mtune=z900
52cflags-$(CONFIG_MARCH_Z990_TUNE) += -mtune=z990 40cflags-$(CONFIG_MARCH_Z990_TUNE) += -mtune=z990
53cflags-$(CONFIG_MARCH_Z9_109_TUNE) += -mtune=z9-109 41cflags-$(CONFIG_MARCH_Z9_109_TUNE) += -mtune=z9-109
@@ -104,7 +92,7 @@ KBUILD_AFLAGS += $(aflags-y)
104OBJCOPYFLAGS := -O binary 92OBJCOPYFLAGS := -O binary
105 93
106head-y := arch/s390/kernel/head.o 94head-y := arch/s390/kernel/head.o
107head-y += arch/s390/kernel/$(if $(CONFIG_64BIT),head64.o,head31.o) 95head-y += arch/s390/kernel/head64.o
108 96
109# See arch/s390/Kbuild for content of core part of the kernel 97# See arch/s390/Kbuild for content of core part of the kernel
110core-y += arch/s390/ 98core-y += arch/s390/
@@ -129,9 +117,7 @@ zfcpdump:
129 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 117 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
130 118
131vdso_install: 119vdso_install:
132ifeq ($(CONFIG_64BIT),y)
133 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@ 120 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@
134endif
135 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@ 121 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@
136 122
137archclean: 123archclean: