Makefile.postlink 753 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0
  2. # ===========================================================================
  3. # Post-link riscv pass
  4. # ===========================================================================
  5. #
  6. # Check that vmlinux relocations look sane
  7. PHONY := __archpost
  8. __archpost:
  9. -include include/config/auto.conf
  10. include $(srctree)/scripts/Kbuild.include
  11. quiet_cmd_relocs_check = CHKREL $@
  12. cmd_relocs_check = \
  13. $(CONFIG_SHELL) $(srctree)/arch/riscv/tools/relocs_check.sh "$(OBJDUMP)" "$(NM)" "$@"
  14. # `@true` prevents complaint when there is nothing to be done
  15. vmlinux vmlinux.unstripped: FORCE
  16. @true
  17. ifdef CONFIG_RELOCATABLE
  18. $(call if_changed,relocs_check)
  19. endif
  20. clean:
  21. @true
  22. PHONY += FORCE clean
  23. FORCE:
  24. .PHONY: $(PHONY)