2016-11-26 03:26:09 +00:00
|
|
|
# ===========================================================================
|
|
|
|
# Post-link powerpc pass
|
|
|
|
# ===========================================================================
|
|
|
|
#
|
|
|
|
# 1. Check that vmlinux relocations look sane
|
|
|
|
|
|
|
|
PHONY := __archpost
|
|
|
|
__archpost:
|
|
|
|
|
|
|
|
include include/config/auto.conf
|
|
|
|
include scripts/Kbuild.include
|
|
|
|
|
|
|
|
quiet_cmd_relocs_check = CHKREL $@
|
2016-11-26 03:26:10 +00:00
|
|
|
cmd_relocs_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@"
|
2016-11-26 03:26:09 +00:00
|
|
|
|
|
|
|
# `@true` prevents complaint when there is nothing to be done
|
|
|
|
|
|
|
|
vmlinux: FORCE
|
|
|
|
@true
|
|
|
|
ifdef CONFIG_RELOCATABLE
|
|
|
|
$(call if_changed,relocs_check)
|
|
|
|
endif
|
|
|
|
|
|
|
|
%.ko: FORCE
|
|
|
|
@true
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@true
|
|
|
|
|
|
|
|
PHONY += FORCE clean
|
|
|
|
|
|
|
|
FORCE:
|
|
|
|
|
|
|
|
.PHONY: $(PHONY)
|