Blame view

arch/powerpc/Makefile.postlink 1.17 KB
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  # SPDX-License-Identifier: GPL-2.0
f188d0524   Nicholas Piggin   powerpc: Use the ...
2
3
4
5
6
7
8
9
  # ===========================================================================
  # Post-link powerpc pass
  # ===========================================================================
  #
  # 1. Check that vmlinux relocations look sane
  
  PHONY := __archpost
  __archpost:
24e0bfbf6   Horia Geantă   powerpc: Fix dist...
10
  -include include/config/auto.conf
f188d0524   Nicholas Piggin   powerpc: Use the ...
11
  include scripts/Kbuild.include
c494adefe   Nicholas Piggin   powerpc/64: Tool ...
12
13
  quiet_cmd_head_check = CHKHEAD $@
        cmd_head_check = $(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/head_check.sh "$(NM)" "$@"
f188d0524   Nicholas Piggin   powerpc: Use the ...
14
  quiet_cmd_relocs_check = CHKREL  $@
4ea80652d   Nicholas Piggin   powerpc/64s: Tool...
15
16
  ifdef CONFIG_PPC_BOOK3S_64
        cmd_relocs_check =						\
43e76cd36   Alexandre Ghiti   powerpc: Do not c...
17
  	$(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$(NM)" "$@" ; \
b71dca989   Stephen Rothwell   powerpc: unrel_br...
18
  	$(BASH) $(srctree)/arch/powerpc/tools/unrel_branch_check.sh "$(OBJDUMP)" "$(NM)" "$@"
4ea80652d   Nicholas Piggin   powerpc/64s: Tool...
19
20
  else
        cmd_relocs_check =						\
43e76cd36   Alexandre Ghiti   powerpc: Do not c...
21
  	$(CONFIG_SHELL) $(srctree)/arch/powerpc/tools/relocs_check.sh "$(OBJDUMP)" "$(NM)" "$@"
4ea80652d   Nicholas Piggin   powerpc/64s: Tool...
22
  endif
f188d0524   Nicholas Piggin   powerpc: Use the ...
23
24
25
26
27
  
  # `@true` prevents complaint when there is nothing to be done
  
  vmlinux: FORCE
  	@true
c494adefe   Nicholas Piggin   powerpc/64: Tool ...
28
29
30
  ifdef CONFIG_PPC64
  	$(call cmd,head_check)
  endif
f188d0524   Nicholas Piggin   powerpc: Use the ...
31
32
33
34
35
36
37
38
  ifdef CONFIG_RELOCATABLE
  	$(call if_changed,relocs_check)
  endif
  
  %.ko: FORCE
  	@true
  
  clean:
c494adefe   Nicholas Piggin   powerpc/64: Tool ...
39
  	rm -f .tmp_symbols.txt
f188d0524   Nicholas Piggin   powerpc: Use the ...
40
41
42
43
44
45
  
  PHONY += FORCE clean
  
  FORCE:
  
  .PHONY: $(PHONY)