diff options
author | Michal Marek <mmarek@suse.cz> | 2010-08-04 07:59:13 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-04 07:59:13 -0400 |
commit | 772320e84588dcbe1600ffb83e5f328f2209ac2a (patch) | |
tree | a7de21b79340aeaa17c58126f6b801b82c77b53a /arch/s390/Makefile | |
parent | 1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff) | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) |
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts:
arch/powerpc/Makefile
Diffstat (limited to 'arch/s390/Makefile')
-rw-r--r-- | arch/s390/Makefile | 19 |
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 | ||
16 | ifndef CONFIG_64BIT | 16 | ifndef CONFIG_64BIT |
17 | LD_BFD := elf32-s390 | ||
17 | LDFLAGS := -m elf_s390 | 18 | LDFLAGS := -m elf_s390 |
18 | KBUILD_CFLAGS += -m31 | 19 | KBUILD_CFLAGS += -m31 |
19 | KBUILD_AFLAGS += -m31 | 20 | KBUILD_AFLAGS += -m31 |
@@ -21,6 +22,7 @@ UTS_MACHINE := s390 | |||
21 | STACK_SIZE := 8192 | 22 | STACK_SIZE := 8192 |
22 | CHECKFLAGS += -D__s390__ -msize-long | 23 | CHECKFLAGS += -D__s390__ -msize-long |
23 | else | 24 | else |
25 | LD_BFD := elf64-s390 | ||
24 | LDFLAGS := -m elf64_s390 | 26 | LDFLAGS := -m elf64_s390 |
25 | KBUILD_AFLAGS_MODULE += -fpic -D__PIC__ | 27 | KBUILD_AFLAGS_MODULE += -fpic -D__PIC__ |
26 | KBUILD_CFLAGS_MODULE += -fpic -D__PIC__ | 28 | KBUILD_CFLAGS_MODULE += -fpic -D__PIC__ |
@@ -31,6 +33,8 @@ STACK_SIZE := 16384 | |||
31 | CHECKFLAGS += -D__s390__ -D__s390x__ | 33 | CHECKFLAGS += -D__s390__ -D__s390x__ |
32 | endif | 34 | endif |
33 | 35 | ||
36 | export LD_BFD | ||
37 | |||
34 | cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) | 38 | cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) |
35 | cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900) | 39 | cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900) |
36 | cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990) | 40 | cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990) |
@@ -86,7 +90,9 @@ KBUILD_AFLAGS += $(aflags-y) | |||
86 | OBJCOPYFLAGS := -O binary | 90 | OBJCOPYFLAGS := -O binary |
87 | LDFLAGS_vmlinux := -e start | 91 | LDFLAGS_vmlinux := -e start |
88 | 92 | ||
89 | head-y := arch/s390/kernel/head.o arch/s390/kernel/init_task.o | 93 | head-y := arch/s390/kernel/head.o |
94 | head-y += arch/s390/kernel/$(if $(CONFIG_64BIT),head64.o,head31.o) | ||
95 | head-y += arch/s390/kernel/init_task.o | ||
90 | 96 | ||
91 | core-y += arch/s390/mm/ arch/s390/kernel/ arch/s390/crypto/ \ | 97 | core-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 | ||
101 | boot := arch/s390/boot | 107 | boot := arch/s390/boot |
102 | 108 | ||
103 | all: image | 109 | all: image bzImage |
104 | 110 | ||
105 | install: vmlinux | 111 | install: vmlinux |
106 | $(Q)$(MAKE) $(build)=$(boot) $@ | 112 | $(Q)$(MAKE) $(build)=$(boot) $@ |
107 | 113 | ||
108 | image: vmlinux | 114 | image bzImage: vmlinux |
109 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 115 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
110 | 116 | ||
111 | zfcpdump: | 117 | zfcpdump: |
112 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | 118 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ |
113 | 119 | ||
120 | vdso_install: | ||
121 | ifeq ($(CONFIG_64BIT),y) | ||
122 | $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso64 $@ | ||
123 | endif | ||
124 | $(Q)$(MAKE) $(build)=arch/$(ARCH)/kernel/vdso32 $@ | ||
125 | |||
114 | archclean: | 126 | archclean: |
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 |
118 | define archhelp | 130 | define 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)' | ||
120 | endef | 133 | endef |