]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/powerpc/Makefile.postlink
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa...
[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_head_check = CHKHEAD $@
14       cmd_head_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/head_check.sh "$(NM)" "$@"
15
16 quiet_cmd_relocs_check = CHKREL  $@
17 ifdef CONFIG_PPC_BOOK3S_64
18       cmd_relocs_check =                                                \
19         $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@" ; \
20         $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$@"
21 else
22       cmd_relocs_check =                                                \
23         $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$@"
24 endif
25
26 # `@true` prevents complaint when there is nothing to be done
27
28 vmlinux: FORCE
29         @true
30 ifdef CONFIG_PPC64
31         $(call cmd,head_check)
32 endif
33 ifdef CONFIG_RELOCATABLE
34         $(call if_changed,relocs_check)
35 endif
36
37 %.ko: FORCE
38         @true
39
40 clean:
41         rm -f .tmp_symbols.txt
42
43 PHONY += FORCE clean
44
45 FORCE:
46
47 .PHONY: $(PHONY)