blob: eccfcc88afae00cca95ef578dc576c1d2e72dfa1 [file] [log] [blame]
Nicholas Pigginf188d052016-11-26 14:26:09 +11001# ===========================================================================
2# Post-link powerpc pass
3# ===========================================================================
4#
5# 1. Check that vmlinux relocations look sane
6
7PHONY := __archpost
8__archpost:
9
Horia Geantă24e0bfb2017-05-08 11:50:16 +030010-include include/config/auto.conf
Nicholas Pigginf188d052016-11-26 14:26:09 +110011include scripts/Kbuild.include
12
13quiet_cmd_relocs_check = CHKREL $@
Nicholas Pigginb71c9ff2016-11-26 14:26:10 +110014 cmd_relocs_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@"
Nicholas Pigginf188d052016-11-26 14:26:09 +110015
16# `@true` prevents complaint when there is nothing to be done
17
18vmlinux: FORCE
19 @true
20ifdef CONFIG_RELOCATABLE
21 $(call if_changed,relocs_check)
22endif
23
24%.ko: FORCE
25 @true
26
27clean:
28 @true
29
30PHONY += FORCE clean
31
32FORCE:
33
34.PHONY: $(PHONY)