diff options
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r-- | arch/s390/Makefile | 16 |
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 | ||
16 | ifndef CONFIG_64BIT | ||
17 | LD_BFD := elf32-s390 | ||
18 | LDFLAGS := -m elf_s390 | ||
19 | KBUILD_CFLAGS += -m31 | ||
20 | KBUILD_AFLAGS += -m31 | ||
21 | UTS_MACHINE := s390 | ||
22 | STACK_SIZE := 8192 | ||
23 | CHECKFLAGS += -D__s390__ -msize-long | ||
24 | else | ||
25 | LD_BFD := elf64-s390 | 16 | LD_BFD := elf64-s390 |
26 | LDFLAGS := -m elf64_s390 | 17 | LDFLAGS := -m elf64_s390 |
27 | KBUILD_AFLAGS_MODULE += -fPIC | 18 | KBUILD_AFLAGS_MODULE += -fPIC |
@@ -31,11 +22,9 @@ KBUILD_AFLAGS += -m64 | |||
31 | UTS_MACHINE := s390x | 22 | UTS_MACHINE := s390x |
32 | STACK_SIZE := 16384 | 23 | STACK_SIZE := 16384 |
33 | CHECKFLAGS += -D__s390__ -D__s390x__ | 24 | CHECKFLAGS += -D__s390__ -D__s390x__ |
34 | endif | ||
35 | 25 | ||
36 | export LD_BFD | 26 | export LD_BFD |
37 | 27 | ||
38 | mflags-$(CONFIG_MARCH_G5) := -march=g5 | ||
39 | mflags-$(CONFIG_MARCH_Z900) := -march=z900 | 28 | mflags-$(CONFIG_MARCH_Z900) := -march=z900 |
40 | mflags-$(CONFIG_MARCH_Z990) := -march=z990 | 29 | mflags-$(CONFIG_MARCH_Z990) := -march=z990 |
41 | mflags-$(CONFIG_MARCH_Z9_109) := -march=z9-109 | 30 | mflags-$(CONFIG_MARCH_Z9_109) := -march=z9-109 |
@@ -47,7 +36,6 @@ mflags-$(CONFIG_MARCH_Z13) := -march=z13 | |||
47 | aflags-y += $(mflags-y) | 36 | aflags-y += $(mflags-y) |
48 | cflags-y += $(mflags-y) | 37 | cflags-y += $(mflags-y) |
49 | 38 | ||
50 | cflags-$(CONFIG_MARCH_G5_TUNE) += -mtune=g5 | ||
51 | cflags-$(CONFIG_MARCH_Z900_TUNE) += -mtune=z900 | 39 | cflags-$(CONFIG_MARCH_Z900_TUNE) += -mtune=z900 |
52 | cflags-$(CONFIG_MARCH_Z990_TUNE) += -mtune=z990 | 40 | cflags-$(CONFIG_MARCH_Z990_TUNE) += -mtune=z990 |
53 | cflags-$(CONFIG_MARCH_Z9_109_TUNE) += -mtune=z9-109 | 41 | cflags-$(CONFIG_MARCH_Z9_109_TUNE) += -mtune=z9-109 |
@@ -104,7 +92,7 @@ KBUILD_AFLAGS += $(aflags-y) | |||
104 | OBJCOPYFLAGS := -O binary | 92 | OBJCOPYFLAGS := -O binary |
105 | 93 | ||
106 | head-y := arch/s390/kernel/head.o | 94 | head-y := arch/s390/kernel/head.o |
107 | head-y += arch/s390/kernel/$(if $(CONFIG_64BIT),head64.o,head31.o) | 95 | head-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 |
110 | core-y += arch/s390/ | 98 | core-y += arch/s390/ |
@@ -129,9 +117,7 @@ zfcpdump: | |||
129 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 117 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
130 | 118 | ||
131 | vdso_install: | 119 | vdso_install: |
132 | ifeq ($(CONFIG_64BIT),y) | ||
133 | $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@ | 120 | $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@ |
134 | endif | ||
135 | $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@ | 121 | $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@ |
136 | 122 | ||
137 | archclean: | 123 | archclean: |