1 # SPDX-License-Identifier: GPL-2.0 2 # ============================================ 3 # Post-link powerpc pass 4 # ============================================ 5 # 6 # 1. Check that vmlinux relocations look sane 7 8 PHONY := __archpost 9 __archpost: 10 11 -include include/config/auto.conf 12 include $(srctree)/scripts/Kbuild.include 13 14 quiet_cmd_head_check = CHKHEAD $@ 15 cmd_head_check = $(CONFIG_SHELL) $(srctr 16 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 27 # `@true` prevents complaint when there is not 28 29 vmlinux: FORCE 30 @true 31 ifdef CONFIG_PPC64 32 $(call cmd,head_check) 33 endif 34 ifdef CONFIG_RELOCATABLE 35 $(call if_changed,relocs_check) 36 endif 37 38 clean: 39 rm -f .tmp_symbols.txt 40 41 PHONY += FORCE clean 42 43 FORCE: 44 45 .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.