📄 makefile
字号:
## s390/Makefile## This file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" and "archdep" for cleaning up and making dependencies for# this architecture## This file is subject to the terms and conditions of the GNU General Public# License. See the file "COPYING" in the main directory of this archive# for more details.## Copyright (C) 1994 by Linus Torvalds#ifndef CONFIG_64BITLDFLAGS := -m elf_s390KBUILD_CFLAGS += -m31KBUILD_AFLAGS += -m31UTS_MACHINE := s390STACK_SIZE := 8192CHECKFLAGS += -D__s390__ -msize-longelseLDFLAGS := -m elf64_s390MODFLAGS += -fpic -D__PIC__KBUILD_CFLAGS += -m64KBUILD_AFLAGS += -m64UTS_MACHINE := s390xSTACK_SIZE := 16384CHECKFLAGS += -D__s390__ -D__s390x__endifcflags-$(CONFIG_MARCH_G5) += $(call cc-option,-march=g5)cflags-$(CONFIG_MARCH_Z900) += $(call cc-option,-march=z900)cflags-$(CONFIG_MARCH_Z990) += $(call cc-option,-march=z990)cflags-$(CONFIG_MARCH_Z9_109) += $(call cc-option,-march=z9-109)#KBUILD_IMAGE is necessary for make rpmKBUILD_IMAGE :=arch/s390/boot/image## Prevent tail-call optimizations, to get clearer backtraces:#cflags-$(CONFIG_FRAME_POINTER) += -fno-optimize-sibling-calls# old style option for packed stacksifeq ($(call cc-option-yn,-mkernel-backchain),y)cflags-$(CONFIG_PACK_STACK) += -mkernel-backchain -D__PACK_STACKaflags-$(CONFIG_PACK_STACK) += -D__PACK_STACKcflags-$(CONFIG_SMALL_STACK) += -D__SMALL_STACKaflags-$(CONFIG_SMALL_STACK) += -D__SMALL_STACKifdef CONFIG_SMALL_STACKSTACK_SIZE := $(shell echo $$(($(STACK_SIZE)/2)) )endifendif# new style option for packed stacksifeq ($(call cc-option-yn,-mpacked-stack),y)cflags-$(CONFIG_PACK_STACK) += -mpacked-stack -D__PACK_STACKaflags-$(CONFIG_PACK_STACK) += -D__PACK_STACKcflags-$(CONFIG_SMALL_STACK) += -D__SMALL_STACKaflags-$(CONFIG_SMALL_STACK) += -D__SMALL_STACKifdef CONFIG_SMALL_STACKSTACK_SIZE := $(shell echo $$(($(STACK_SIZE)/2)) )endifendififeq ($(call cc-option-yn,-mstack-size=8192 -mstack-guard=128),y)cflags-$(CONFIG_CHECK_STACK) += -mstack-size=$(STACK_SIZE)ifneq ($(call cc-option-yn,-mstack-size=8192),y)cflags-$(CONFIG_CHECK_STACK) += -mstack-guard=$(CONFIG_STACK_GUARD)endifendififeq ($(call cc-option-yn,-mwarn-dynamicstack),y)cflags-$(CONFIG_WARN_STACK) += -mwarn-dynamicstackcflags-$(CONFIG_WARN_STACK) += -mwarn-framesize=$(CONFIG_WARN_STACK_SIZE)endifKBUILD_CFLAGS += -mbackchain -msoft-float $(cflags-y)KBUILD_CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compareKBUILD_AFLAGS += $(aflags-y)OBJCOPYFLAGS := -O binaryLDFLAGS_vmlinux := -e starthead-y := arch/s390/kernel/head.o arch/s390/kernel/init_task.ocore-y += arch/s390/mm/ arch/s390/kernel/ arch/s390/crypto/ \ arch/s390/appldata/ arch/s390/hypfs/libs-y += arch/s390/lib/drivers-y += drivers/s390/drivers-$(CONFIG_MATHEMU) += arch/s390/math-emu/# must be linked after kerneldrivers-$(CONFIG_OPROFILE) += arch/s390/oprofile/boot := arch/s390/bootall: imageinstall: vmlinux $(Q)$(MAKE) $(build)=$(boot) $@image: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@zfcpdump: $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@archclean: $(Q)$(MAKE) $(clean)=$(boot)# Don't use tabs in echo argumentsdefine archhelp echo '* image - Kernel image for IPL ($(boot)/image)'endef
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -