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 10f188d052SNicholas Piggininclude include/config/auto.conf 11f188d052SNicholas Piggininclude scripts/Kbuild.include 12f188d052SNicholas Piggin 13f188d052SNicholas Pigginquiet_cmd_relocs_check = CHKREL $@ 14b71c9ffbSNicholas Piggin cmd_relocs_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" 15f188d052SNicholas Piggin 16f188d052SNicholas Piggin# `@true` prevents complaint when there is nothing to be done 17f188d052SNicholas Piggin 18f188d052SNicholas Pigginvmlinux: FORCE 19f188d052SNicholas Piggin @true 20f188d052SNicholas Pigginifdef CONFIG_RELOCATABLE 21f188d052SNicholas Piggin $(call if_changed,relocs_check) 22f188d052SNicholas Pigginendif 23f188d052SNicholas Piggin 24f188d052SNicholas Piggin%.ko: FORCE 25f188d052SNicholas Piggin @true 26f188d052SNicholas Piggin 27f188d052SNicholas Pigginclean: 28f188d052SNicholas Piggin @true 29f188d052SNicholas Piggin 30f188d052SNicholas PigginPHONY += FORCE clean 31f188d052SNicholas Piggin 32f188d052SNicholas PigginFORCE: 33f188d052SNicholas Piggin 34f188d052SNicholas Piggin.PHONY: $(PHONY) 35