1*44079d35SMatt Redfearn# =========================================================================== 2*44079d35SMatt Redfearn# Post-link MIPS pass 3*44079d35SMatt Redfearn# =========================================================================== 4*44079d35SMatt Redfearn# 5*44079d35SMatt Redfearn# 1. Insert relocations into vmlinux 6*44079d35SMatt Redfearn 7*44079d35SMatt RedfearnPHONY := __archpost 8*44079d35SMatt Redfearn__archpost: 9*44079d35SMatt Redfearn 10*44079d35SMatt Redfearninclude include/config/auto.conf 11*44079d35SMatt Redfearninclude scripts/Kbuild.include 12*44079d35SMatt Redfearn 13*44079d35SMatt RedfearnCMD_RELOCS = arch/mips/boot/tools/relocs 14*44079d35SMatt Redfearnquiet_cmd_relocs = RELOCS $@ 15*44079d35SMatt Redfearn cmd_relocs = $(CMD_RELOCS) $@ 16*44079d35SMatt Redfearn 17*44079d35SMatt Redfearn# `@true` prevents complaint when there is nothing to be done 18*44079d35SMatt Redfearn 19*44079d35SMatt Redfearnvmlinux: FORCE 20*44079d35SMatt Redfearn @true 21*44079d35SMatt Redfearnifeq ($(CONFIG_RELOCATABLE),y) 22*44079d35SMatt Redfearn $(call if_changed,relocs) 23*44079d35SMatt Redfearnendif 24*44079d35SMatt Redfearn 25*44079d35SMatt Redfearn%.ko: FORCE 26*44079d35SMatt Redfearn @true 27*44079d35SMatt Redfearn 28*44079d35SMatt Redfearnclean: 29*44079d35SMatt Redfearn @true 30*44079d35SMatt Redfearn 31*44079d35SMatt RedfearnPHONY += FORCE clean 32*44079d35SMatt Redfearn 33*44079d35SMatt RedfearnFORCE: 34*44079d35SMatt Redfearn 35*44079d35SMatt Redfearn.PHONY: $(PHONY) 36