Makefile (39fe5434cb9de5da40510028b17b96bc4eb312b3) | Makefile (a0f97e06a43cf524e616f09e6af3398e1e9c1c5b) |
---|---|
1# 2# s390/Makefile 3# 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 7# this architecture 8# 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 11# for more details. 12# 13# Copyright (C) 1994 by Linus Torvalds 14# 15 16ifndef CONFIG_64BIT 17LDFLAGS := -m elf_s390 | 1# 2# s390/Makefile 3# 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 7# this architecture 8# 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 11# for more details. 12# 13# Copyright (C) 1994 by Linus Torvalds 14# 15 16ifndef CONFIG_64BIT 17LDFLAGS := -m elf_s390 |
18CFLAGS += -m31 | 18KBUILD_CFLAGS += -m31 |
19AFLAGS += -m31 20UTS_MACHINE := s390 21STACK_SIZE := 8192 22CHECKFLAGS += -D__s390__ -msize-long 23else 24LDFLAGS := -m elf64_s390 25MODFLAGS += -fpic -D__PIC__ | 19AFLAGS += -m31 20UTS_MACHINE := s390 21STACK_SIZE := 8192 22CHECKFLAGS += -D__s390__ -msize-long 23else 24LDFLAGS := -m elf64_s390 25MODFLAGS += -fpic -D__PIC__ |
26CFLAGS += -m64 | 26KBUILD_CFLAGS += -m64 |
27AFLAGS += -m64 28UTS_MACHINE := s390x 29STACK_SIZE := 16384 30CHECKFLAGS += -D__s390__ -D__s390x__ 31endif 32 33cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) 34cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900) --- 37 unchanged lines hidden (view full) --- 72endif 73endif 74 75ifeq ($(call cc-option-yn,-mwarn-dynamicstack),y) 76cflags-$(CONFIG_WARN_STACK) += -mwarn-dynamicstack 77cflags-$(CONFIG_WARN_STACK) += -mwarn-framesize=$(CONFIG_WARN_STACK_SIZE) 78endif 79 | 27AFLAGS += -m64 28UTS_MACHINE := s390x 29STACK_SIZE := 16384 30CHECKFLAGS += -D__s390__ -D__s390x__ 31endif 32 33cflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5) 34cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900) --- 37 unchanged lines hidden (view full) --- 72endif 73endif 74 75ifeq ($(call cc-option-yn,-mwarn-dynamicstack),y) 76cflags-$(CONFIG_WARN_STACK) += -mwarn-dynamicstack 77cflags-$(CONFIG_WARN_STACK) += -mwarn-framesize=$(CONFIG_WARN_STACK_SIZE) 78endif 79 |
80CFLAGS += -mbackchain -msoft-float $(cflags-y) 81CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compare | 80KBUILD_CFLAGS += -mbackchain -msoft-float $(cflags-y) 81KBUILD_CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compare |
82AFLAGS += $(aflags-y) 83 84OBJCOPYFLAGS := -O binary 85LDFLAGS_vmlinux := -e start 86 87head-y := arch/s390/kernel/head.o arch/s390/kernel/init_task.o 88 89core-y += arch/s390/mm/ arch/s390/kernel/ arch/s390/crypto/ \ --- 28 unchanged lines hidden --- | 82AFLAGS += $(aflags-y) 83 84OBJCOPYFLAGS := -O binary 85LDFLAGS_vmlinux := -e start 86 87head-y := arch/s390/kernel/head.o arch/s390/kernel/init_task.o 88 89core-y += arch/s390/mm/ arch/s390/kernel/ arch/s390/crypto/ \ --- 28 unchanged lines hidden --- |