Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 # ===========================================================================
0003 # Post-link MIPS pass
0004 # ===========================================================================
0005 #
0006 # 1. Check that Loongson3 LL/SC workarounds are applied correctly
0007 # 2. Insert relocations into vmlinux
0008 
0009 PHONY := __archpost
0010 __archpost:
0011 
0012 -include include/config/auto.conf
0013 include scripts/Kbuild.include
0014 
0015 CMD_LS3_LLSC = arch/mips/tools/loongson3-llsc-check
0016 quiet_cmd_ls3_llsc = LLSCCHK $@
0017       cmd_ls3_llsc = $(CMD_LS3_LLSC) $@
0018 
0019 CMD_RELOCS = arch/mips/boot/tools/relocs
0020 quiet_cmd_relocs = RELOCS  $@
0021       cmd_relocs = $(CMD_RELOCS) $@
0022 
0023 # `@true` prevents complaint when there is nothing to be done
0024 
0025 vmlinux: FORCE
0026         @true
0027 ifeq ($(CONFIG_CPU_LOONGSON3_WORKAROUNDS),y)
0028         $(call if_changed,ls3_llsc)
0029 endif
0030 ifeq ($(CONFIG_RELOCATABLE),y)
0031         $(call if_changed,relocs)
0032 endif
0033 
0034 %.ko: FORCE
0035         @true
0036 
0037 clean:
0038         @true
0039 
0040 PHONY += FORCE clean
0041 
0042 FORCE:
0043 
0044 .PHONY: $(PHONY)