📄 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#ifdef CONFIG_ARCH_S390_31LDFLAGS := -m elf_s390CFLAGS += -m31AFLAGS += -m31UTS_MACHINE := s390STACK_SIZE := 8192endififdef CONFIG_ARCH_S390XLDFLAGS := -m elf64_s390MODFLAGS += -fpic -D__PIC__CFLAGS += -m64AFLAGS += -m64UTS_MACHINE := s390xSTACK_SIZE := 16384endifcflags-$(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)ifeq ($(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)) )endifendififeq ($(call cc-option-yn,-mstack-size=8192 -mstack-guard=128),y)cflags-$(CONFIG_CHECK_STACK) += -mstack-size=$(STACK_SIZE)cflags-$(CONFIG_CHECK_STACK) += -mstack-guard=$(CONFIG_STACK_GUARD)endififeq ($(call cc-option-yn,-mwarn-dynamicstack),y)cflags-$(CONFIG_WARN_STACK) += -mwarn-dynamicstackcflags-$(CONFIG_WARN_STACK) += -mwarn-framesize=$(CONFIG_WARN_STACK_SIZE)endifCFLAGS += -mbackchain $(cflags-y)CFLAGS += $(call cc-option,-finline-limit=10000)CFLAGS += -pipe -fno-strength-reduce -Wno-sign-compare AFLAGS += $(aflags-y)OBJCOPYFLAGS := -O binaryLDFLAGS_vmlinux := -e starthead-$(CONFIG_ARCH_S390_31) += arch/$(ARCH)/kernel/head.ohead-$(CONFIG_ARCH_S390X) += arch/$(ARCH)/kernel/head64.ohead-y += arch/$(ARCH)/kernel/init_task.ocore-y += arch/$(ARCH)/mm/ arch/$(ARCH)/kernel/ arch/$(ARCH)/crypto/ \ arch/$(ARCH)/appldata/libs-y += arch/$(ARCH)/lib/drivers-y += drivers/s390/drivers-$(CONFIG_MATHEMU) += arch/$(ARCH)/math-emu/# must be linked after kerneldrivers-$(CONFIG_OPROFILE) += arch/s390/oprofile/boot := arch/$(ARCH)/bootall: imageinstall: vmlinux $(Q)$(MAKE) $(build)=$(boot) $@image: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@archclean: $(Q)$(MAKE) $(clean)=$(boot)prepare: include/asm-$(ARCH)/offsets.harch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ include/config/MARKERinclude/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s $(call filechk,gen-asm-offsets)CLEAN_FILES += include/asm-$(ARCH)/offsets.h# 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 + -