4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" and "archdep" for cleaning up and making dependencies for
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License. See the file "COPYING" in the main directory of this archive
13 # Copyright (C) 1994 by Linus Torvalds
16 ifdef CONFIG_ARCH_S390_31
17 LDFLAGS := -m elf_s390
23 ifdef CONFIG_ARCH_S390X
24 LDFLAGS := -m elf64_s390
25 MODFLAGS += -fpic -D__PIC__
31 cflags-$(CONFIG_MARCH_G5) += $(call check_gcc,-march=g5,)
32 cflags-$(CONFIG_MARCH_Z900) += $(call check_gcc,-march=z900,)
33 cflags-$(CONFIG_MARCH_Z990) += $(call check_gcc,-march=z990,)
36 CFLAGS += $(call check_gcc,-finline-limit=10000,)
37 CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compare
40 OBJCOPYFLAGS := -O binary
41 LDFLAGS_vmlinux := -e start
43 head-$(CONFIG_ARCH_S390_31) += arch/$(ARCH)/kernel/head.o
44 head-$(CONFIG_ARCH_S390X) += arch/$(ARCH)/kernel/head64.o
45 head-y += arch/$(ARCH)/kernel/init_task.o
47 core-y += arch/$(ARCH)/mm/ arch/$(ARCH)/kernel/ arch/$(ARCH)/crypto/ \
48 arch/$(ARCH)/appldata/
49 libs-y += arch/$(ARCH)/lib/
50 drivers-y += drivers/s390/
51 drivers-$(CONFIG_MATHEMU) += arch/$(ARCH)/math-emu/
53 # must be linked after kernel
54 drivers-$(CONFIG_OPROFILE) += arch/s390/oprofile/
56 boot := arch/$(ARCH)/boot
61 $(Q)$(MAKE) $(build)=$(boot) $@
64 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
67 $(Q)$(MAKE) $(clean)=$(boot)
69 prepare: include/asm-$(ARCH)/offsets.h
71 arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
74 include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
75 $(call filechk,gen-asm-offsets)
77 CLEAN_FILES += include/asm-$(ARCH)/offsets.h
79 # Don't use tabs in echo arguments
81 echo '* image - Kernel image for IPL ($(boot)/image)'