xref: /linux/arch/mips/Makefile.postlink (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
244079d35SMatt Redfearn# ===========================================================================
344079d35SMatt Redfearn# Post-link MIPS pass
444079d35SMatt Redfearn# ===========================================================================
544079d35SMatt Redfearn#
644079d35SMatt Redfearn# 1. Insert relocations into vmlinux
744079d35SMatt Redfearn
844079d35SMatt RedfearnPHONY := __archpost
944079d35SMatt Redfearn__archpost:
1044079d35SMatt Redfearn
116e5b95cdSMatt Redfearn-include include/config/auto.conf
1244079d35SMatt Redfearninclude scripts/Kbuild.include
1344079d35SMatt Redfearn
1444079d35SMatt RedfearnCMD_RELOCS = arch/mips/boot/tools/relocs
1544079d35SMatt Redfearnquiet_cmd_relocs = RELOCS $@
1644079d35SMatt Redfearn      cmd_relocs = $(CMD_RELOCS) $@
1744079d35SMatt Redfearn
1844079d35SMatt Redfearn# `@true` prevents complaint when there is nothing to be done
1944079d35SMatt Redfearn
2044079d35SMatt Redfearnvmlinux: FORCE
2144079d35SMatt Redfearn	@true
2244079d35SMatt Redfearnifeq ($(CONFIG_RELOCATABLE),y)
2344079d35SMatt Redfearn	$(call if_changed,relocs)
2444079d35SMatt Redfearnendif
2544079d35SMatt Redfearn
2644079d35SMatt Redfearn%.ko: FORCE
2744079d35SMatt Redfearn	@true
2844079d35SMatt Redfearn
2944079d35SMatt Redfearnclean:
3044079d35SMatt Redfearn	@true
3144079d35SMatt Redfearn
3244079d35SMatt RedfearnPHONY += FORCE clean
3344079d35SMatt Redfearn
3444079d35SMatt RedfearnFORCE:
3544079d35SMatt Redfearn
3644079d35SMatt Redfearn.PHONY: $(PHONY)
37