hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
....@@ -3,13 +3,18 @@
33 # Post-link MIPS pass
44 # ===========================================================================
55 #
6
-# 1. Insert relocations into vmlinux
6
+# 1. Check that Loongson3 LL/SC workarounds are applied correctly
7
+# 2. Insert relocations into vmlinux
78
89 PHONY := __archpost
910 __archpost:
1011
1112 -include include/config/auto.conf
1213 include scripts/Kbuild.include
14
+
15
+CMD_LS3_LLSC = arch/mips/tools/loongson3-llsc-check
16
+quiet_cmd_ls3_llsc = LLSCCHK $@
17
+ cmd_ls3_llsc = $(CMD_LS3_LLSC) $@
1318
1419 CMD_RELOCS = arch/mips/boot/tools/relocs
1520 quiet_cmd_relocs = RELOCS $@
....@@ -19,6 +24,9 @@
1924
2025 vmlinux: FORCE
2126 @true
27
+ifeq ($(CONFIG_CPU_LOONGSON3_WORKAROUNDS),y)
28
+ $(call if_changed,ls3_llsc)
29
+endif
2230 ifeq ($(CONFIG_RELOCATABLE),y)
2331 $(call if_changed,relocs)
2432 endif