1f188d052SNicholas Piggin# =========================================================================== 2f188d052SNicholas Piggin# Post-link powerpc pass 3f188d052SNicholas Piggin# =========================================================================== 4f188d052SNicholas Piggin# 5f188d052SNicholas Piggin# 1. Check that vmlinux relocations look sane 6f188d052SNicholas Piggin 7f188d052SNicholas PigginPHONY := __archpost 8f188d052SNicholas Piggin__archpost: 9f188d052SNicholas Piggin 1024e0bfbfSHoria Geantă-include include/config/auto.conf 11f188d052SNicholas Piggininclude scripts/Kbuild.include 12f188d052SNicholas Piggin 13c494adefSNicholas Pigginquiet_cmd_head_check = CHKHEAD $@ 14c494adefSNicholas Piggin cmd_head_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/head_check.sh "$(NM)" "$@" 15c494adefSNicholas Piggin 16f188d052SNicholas Pigginquiet_cmd_relocs_check = CHKREL $@ 174ea80652SNicholas Pigginifdef CONFIG_PPC_BOOK3S_64 184ea80652SNicholas Piggin cmd_relocs_check = \ 194ea80652SNicholas Piggin $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" ; \ 204ea80652SNicholas Piggin $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@" 214ea80652SNicholas Pigginelse 224ea80652SNicholas Piggin cmd_relocs_check = \ 234ea80652SNicholas Piggin $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" 244ea80652SNicholas Pigginendif 25f188d052SNicholas Piggin 26f188d052SNicholas Piggin# `@true` prevents complaint when there is nothing to be done 27f188d052SNicholas Piggin 28f188d052SNicholas Pigginvmlinux: FORCE 29f188d052SNicholas Piggin @true 30c494adefSNicholas Pigginifdef CONFIG_PPC64 31c494adefSNicholas Piggin $(call cmd,head_check) 32c494adefSNicholas Pigginendif 33f188d052SNicholas Pigginifdef CONFIG_RELOCATABLE 34f188d052SNicholas Piggin $(call if_changed,relocs_check) 35f188d052SNicholas Pigginendif 36f188d052SNicholas Piggin 37f188d052SNicholas Piggin%.ko: FORCE 38f188d052SNicholas Piggin @true 39f188d052SNicholas Piggin 40f188d052SNicholas Pigginclean: 41c494adefSNicholas Piggin rm -f .tmp_symbols.txt 42f188d052SNicholas Piggin 43f188d052SNicholas PigginPHONY += FORCE clean 44f188d052SNicholas Piggin 45f188d052SNicholas PigginFORCE: 46f188d052SNicholas Piggin 47f188d052SNicholas Piggin.PHONY: $(PHONY) 48