1 # SPDX-License-Identifier: GPL-2.0 << 2 # ============================================ 1 # =========================================================================== 3 # Post-link powerpc pass !! 2 # Post-link MIPS pass 4 # ============================================ 3 # =========================================================================== 5 # 4 # 6 # 1. Check that vmlinux relocations look sane !! 5 # 1. Insert relocations into vmlinux 7 6 8 PHONY := __archpost 7 PHONY := __archpost 9 __archpost: 8 __archpost: 10 9 11 -include include/config/auto.conf 10 -include include/config/auto.conf 12 include $(srctree)/scripts/Kbuild.include !! 11 include scripts/Kbuild.include 13 12 14 quiet_cmd_head_check = CHKHEAD $@ !! 13 CMD_RELOCS = arch/mips/boot/tools/relocs 15 cmd_head_check = $(CONFIG_SHELL) $(srctr !! 14 quiet_cmd_relocs = RELOCS $@ 16 !! 15 cmd_relocs = $(CMD_RELOCS) $@ 17 quiet_cmd_relocs_check = CHKREL $@ << 18 ifdef CONFIG_PPC_BOOK3S_64 << 19 cmd_relocs_check = << 20 $(CONFIG_SHELL) $(srctree)/arch/powerp << 21 $(BASH) $(srctree)/arch/powerpc/tools/ << 22 else << 23 cmd_relocs_check = << 24 $(CONFIG_SHELL) $(srctree)/arch/powerp << 25 endif << 26 16 27 # `@true` prevents complaint when there is not 17 # `@true` prevents complaint when there is nothing to be done 28 18 29 vmlinux: FORCE 19 vmlinux: FORCE 30 @true 20 @true 31 ifdef CONFIG_PPC64 !! 21 ifeq ($(CONFIG_RELOCATABLE),y) 32 $(call cmd,head_check) !! 22 $(call if_changed,relocs) 33 endif << 34 ifdef CONFIG_RELOCATABLE << 35 $(call if_changed,relocs_check) << 36 endif 23 endif 37 24 >> 25 %.ko: FORCE >> 26 @true >> 27 38 clean: 28 clean: 39 rm -f .tmp_symbols.txt !! 29 @true 40 30 41 PHONY += FORCE clean 31 PHONY += FORCE clean 42 32 43 FORCE: 33 FORCE: 44 34 45 .PHONY: $(PHONY) 35 .PHONY: $(PHONY)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.