| # SPDX-License-Identifier: GPL-2.0 |
| # =========================================================================== |
| # =========================================================================== |
| # 1. Check that vmlinux relocations look sane |
| -include include/config/auto.conf |
| include scripts/Kbuild.include |
| quiet_cmd_head_check = CHKHEAD $@ |
| cmd_head_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/head_check.sh "$(NM)" "$@" |
| quiet_cmd_relocs_check = CHKREL $@ |
| ifdef CONFIG_PPC_BOOK3S_64 |
| $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" ; \ |
| $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@" |
| $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" |
| # `@true` prevents complaint when there is nothing to be done |
| $(call if_changed,relocs_check) |