Makefile (a63f7778f76e1cf8ed3bcb7a1d9453c9609121ad) | Makefile (c4e789572557aa147b13bf7fe09cc99663ed0cf5) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# 3# s390/Makefile 4# 5# This file is included by the global makefile so that you can add your own 6# architecture-specific flags and dependencies. 7# 8# Copyright (C) 1994 by Linus Torvalds --- 68 unchanged lines hidden (view full) --- 77 CC_FLAGS_CHECK_STACK += -mstack-guard=$(CONFIG_STACK_GUARD) 78 endif 79 export CC_FLAGS_CHECK_STACK 80 cflags-$(CONFIG_CHECK_STACK) += $(CC_FLAGS_CHECK_STACK) 81endif 82 83ifdef CONFIG_EXPOLINE 84 ifdef CONFIG_EXPOLINE_EXTERN | 1# SPDX-License-Identifier: GPL-2.0 2# 3# s390/Makefile 4# 5# This file is included by the global makefile so that you can add your own 6# architecture-specific flags and dependencies. 7# 8# Copyright (C) 1994 by Linus Torvalds --- 68 unchanged lines hidden (view full) --- 77 CC_FLAGS_CHECK_STACK += -mstack-guard=$(CONFIG_STACK_GUARD) 78 endif 79 export CC_FLAGS_CHECK_STACK 80 cflags-$(CONFIG_CHECK_STACK) += $(CC_FLAGS_CHECK_STACK) 81endif 82 83ifdef CONFIG_EXPOLINE 84 ifdef CONFIG_EXPOLINE_EXTERN |
85 KBUILD_LDFLAGS_MODULE += arch/s390/lib/expoline.o | 85 KBUILD_LDFLAGS_MODULE += arch/s390/lib/expoline/expoline.o |
86 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk-extern 87 CC_FLAGS_EXPOLINE += -mfunction-return=thunk-extern 88 else 89 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk 90 CC_FLAGS_EXPOLINE += -mfunction-return=thunk 91 endif 92 CC_FLAGS_EXPOLINE += -mindirect-branch-table 93 export CC_FLAGS_EXPOLINE --- 64 unchanged lines hidden (view full) --- 158# asm-offsets.h is built in prepare0, for which archprepare is a dependency. 159# Therefore we need to generate the header after prepare0 has been made, hence 160# this hack. 161prepare: vdso_prepare 162vdso_prepare: prepare0 163 $(Q)$(MAKE) $(build)=arch/s390/kernel/vdso64 include/generated/vdso64-offsets.h 164 $(if $(CONFIG_COMPAT),$(Q)$(MAKE) \ 165 $(build)=arch/s390/kernel/vdso32 include/generated/vdso32-offsets.h) | 86 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk-extern 87 CC_FLAGS_EXPOLINE += -mfunction-return=thunk-extern 88 else 89 CC_FLAGS_EXPOLINE := -mindirect-branch=thunk 90 CC_FLAGS_EXPOLINE += -mfunction-return=thunk 91 endif 92 CC_FLAGS_EXPOLINE += -mindirect-branch-table 93 export CC_FLAGS_EXPOLINE --- 64 unchanged lines hidden (view full) --- 158# asm-offsets.h is built in prepare0, for which archprepare is a dependency. 159# Therefore we need to generate the header after prepare0 has been made, hence 160# this hack. 161prepare: vdso_prepare 162vdso_prepare: prepare0 163 $(Q)$(MAKE) $(build)=arch/s390/kernel/vdso64 include/generated/vdso64-offsets.h 164 $(if $(CONFIG_COMPAT),$(Q)$(MAKE) \ 165 $(build)=arch/s390/kernel/vdso32 include/generated/vdso32-offsets.h) |
166 167ifdef CONFIG_EXPOLINE_EXTERN 168modules_prepare: expoline_prepare 169expoline_prepare: prepare0 170 $(Q)$(MAKE) $(build)=arch/s390/lib/expoline arch/s390/lib/expoline/expoline.o |
|
166endif | 171endif |
172endif |
|
167 168# Don't use tabs in echo arguments 169define archhelp 170 echo '* bzImage - Kernel image for IPL ($(boot)/bzImage)' 171 echo ' install - Install kernel using' 172 echo ' (your) ~/bin/$(INSTALLKERNEL) or' 173 echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 174 echo ' install to $$(INSTALL_PATH)' 175endef | 173 174# Don't use tabs in echo arguments 175define archhelp 176 echo '* bzImage - Kernel image for IPL ($(boot)/bzImage)' 177 echo ' install - Install kernel using' 178 echo ' (your) ~/bin/$(INSTALLKERNEL) or' 179 echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 180 echo ' install to $$(INSTALL_PATH)' 181endef |