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