aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/Makefile
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-08-04 07:59:13 -0400
committerMichal Marek <mmarek@suse.cz>2010-08-04 07:59:13 -0400
commit772320e84588dcbe1600ffb83e5f328f2209ac2a (patch)
treea7de21b79340aeaa17c58126f6b801b82c77b53a /arch/s390/Makefile
parent1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff)
parent9fe6206f400646a2322096b56c59891d530e8d51 (diff)
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts: arch/powerpc/Makefile
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r--arch/s390/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/s390/Makefile b/arch/s390/Makefile
index 83ef8724c833..0c9e6c6d2a64 100644
--- a/arch/s390/Makefile
+++ b/arch/s390/Makefile
@@ -14,6 +14,7 @@
14# 14#
15 15
16ifndef CONFIG_64BIT 16ifndef CONFIG_64BIT
17LD_BFD := elf32-s390
17LDFLAGS := -m elf_s390 18LDFLAGS := -m elf_s390
18KBUILD_CFLAGS += -m31 19KBUILD_CFLAGS += -m31
19KBUILD_AFLAGS += -m31 20KBUILD_AFLAGS += -m31
@@ -21,6 +22,7 @@ UTS_MACHINE := s390
21STACK_SIZE := 8192 22STACK_SIZE := 8192
22CHECKFLAGS += -D__s390__ -msize-long 23CHECKFLAGS += -D__s390__ -msize-long
23else 24else
25LD_BFD := elf64-s390
24LDFLAGS := -m elf64_s390 26LDFLAGS := -m elf64_s390
25KBUILD_AFLAGS_MODULE += -fpic -D__PIC__ 27KBUILD_AFLAGS_MODULE += -fpic -D__PIC__
26KBUILD_CFLAGS_MODULE += -fpic -D__PIC__ 28KBUILD_CFLAGS_MODULE += -fpic -D__PIC__
@@ -31,6 +33,8 @@ STACK_SIZE := 16384
31CHECKFLAGS += -D__s390__ -D__s390x__ 33CHECKFLAGS += -D__s390__ -D__s390x__
32endif 34endif
33 35
36export LD_BFD
37
34cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) 38cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5)
35cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900) 39cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900)
36cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990) 40cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990)
@@ -86,7 +90,9 @@ KBUILD_AFLAGS += $(aflags-y)
86OBJCOPYFLAGS := -O binary 90OBJCOPYFLAGS := -O binary
87LDFLAGS_vmlinux := -e start 91LDFLAGS_vmlinux := -e start
88 92
89head-y := arch/s390/kernel/head.o arch/s390/kernel/init_task.o 93head-y := arch/s390/kernel/head.o
94head-y += arch/s390/kernel/$(if $(CONFIG_64BIT),head64.o,head31.o)
95head-y += arch/s390/kernel/init_task.o
90 96
91core-y += arch/s390/mm/ arch/s390/kernel/ arch/s390/crypto/ \ 97core-y += arch/s390/mm/ arch/s390/kernel/ arch/s390/crypto/ \
92 arch/s390/appldata/ arch/s390/hypfs/ arch/s390/kvm/ 98 arch/s390/appldata/ arch/s390/hypfs/ arch/s390/kvm/
@@ -100,21 +106,28 @@ drivers-$(CONFIG_OPROFILE) += arch/s390/oprofile/
100 106
101boot := arch/s390/boot 107boot := arch/s390/boot
102 108
103all: image 109all: image bzImage
104 110
105install: vmlinux 111install: vmlinux
106 $(Q)$(MAKE) $(build)=$(boot) $@ 112 $(Q)$(MAKE) $(build)=$(boot) $@
107 113
108image: vmlinux 114image bzImage: vmlinux
109 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 115 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
110 116
111zfcpdump: 117zfcpdump:
112 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 118 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
113 119
120vdso_install:
121ifeq ($(CONFIG_64BIT),y)
122 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@
123endif
124 $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@
125
114archclean: 126archclean:
115 $(Q)$(MAKE) $(clean)=$(boot) 127 $(Q)$(MAKE) $(clean)=$(boot)
116 128
117# Don't use tabs in echo arguments 129# Don't use tabs in echo arguments
118define archhelp 130define archhelp
119 echo '* image - Kernel image for IPL ($(boot)/image)' 131 echo '* image - Kernel image for IPL ($(boot)/image)'
132 echo '* bzImage - Compressed kernel image for IPL ($(boot)/bzImage)'
120endef 133endef