Makefile.postlink 692 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # SPDX-License-Identifier: GPL-2.0
  2. # ===========================================================================
  3. # Post-link MIPS pass
  4. # ===========================================================================
  5. #
  6. # 1. Insert relocations into vmlinux
  7. PHONY := __archpost
  8. __archpost:
  9. -include include/config/auto.conf
  10. include scripts/Kbuild.include
  11. CMD_RELOCS = arch/mips/boot/tools/relocs
  12. quiet_cmd_relocs = RELOCS $@
  13. cmd_relocs = $(CMD_RELOCS) $@
  14. # `@true` prevents complaint when there is nothing to be done
  15. vmlinux: FORCE
  16. @true
  17. ifeq ($(CONFIG_RELOCATABLE),y)
  18. $(call if_changed,relocs)
  19. endif
  20. %.ko: FORCE
  21. @true
  22. clean:
  23. @true
  24. PHONY += FORCE clean
  25. FORCE:
  26. .PHONY: $(PHONY)