Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Matt Redfearn | 44079d3 | 2016-11-10 10:02:13 +0000 | [diff] [blame] | 2 | # =========================================================================== |
| 3 | # Post-link MIPS pass |
| 4 | # =========================================================================== |
| 5 | # |
| 6 | # 1. Insert relocations into vmlinux |
| 7 | |
| 8 | PHONY := __archpost |
| 9 | __archpost: |
| 10 | |
Matt Redfearn | 6e5b95c | 2017-01-30 09:58:34 +0000 | [diff] [blame] | 11 | -include include/config/auto.conf |
Matt Redfearn | 44079d3 | 2016-11-10 10:02:13 +0000 | [diff] [blame] | 12 | include scripts/Kbuild.include |
| 13 | |
| 14 | CMD_RELOCS = arch/mips/boot/tools/relocs |
Alexander Lobakin | dd2624a | 2020-01-17 17:02:07 +0300 | [diff] [blame] | 15 | quiet_cmd_relocs = RELOCS $@ |
Matt Redfearn | 44079d3 | 2016-11-10 10:02:13 +0000 | [diff] [blame] | 16 | cmd_relocs = $(CMD_RELOCS) $@ |
| 17 | |
| 18 | # `@true` prevents complaint when there is nothing to be done |
| 19 | |
| 20 | vmlinux: FORCE |
| 21 | @true |
| 22 | ifeq ($(CONFIG_RELOCATABLE),y) |
| 23 | $(call if_changed,relocs) |
| 24 | endif |
| 25 | |
| 26 | %.ko: FORCE |
| 27 | @true |
| 28 | |
| 29 | clean: |
| 30 | @true |
| 31 | |
| 32 | PHONY += FORCE clean |
| 33 | |
| 34 | FORCE: |
| 35 | |
| 36 | .PHONY: $(PHONY) |