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