]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/powerpc/Makefile.postlink
powerpc/64s: Tool to flag direct branches from unrelocated interrupt vectors
[karo-tx-linux.git] / arch / powerpc / Makefile.postlink
1 # ===========================================================================
2 # Post-link powerpc pass
3 # ===========================================================================
4 #
5 # 1. Check that vmlinux relocations look sane
6
7 PHONY := __archpost
8 __archpost:
9
10 -include include/config/auto.conf
11 include scripts/Kbuild.include
12
13 quiet_cmd_relocs_check = CHKREL  $@
14 ifdef CONFIG_PPC_BOOK3S_64
15       cmd_relocs_check =                                                \
16         $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" ; \
17         $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@"
18 else
19       cmd_relocs_check =                                                \
20         $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@"
21 endif
22
23 # `@true` prevents complaint when there is nothing to be done
24
25 vmlinux: FORCE
26         @true
27 ifdef CONFIG_RELOCATABLE
28         $(call if_changed,relocs_check)
29 endif
30
31 %.ko: FORCE
32         @true
33
34 clean:
35         @true
36
37 PHONY += FORCE clean
38
39 FORCE:
40
41 .PHONY: $(PHONY)