x86: Add straight-line-speculation mitigation
[platform/kernel/linux-rpi.git] / arch / x86 / Makefile
index 7488cfb..3002278 100644 (file)
@@ -179,6 +179,10 @@ ifdef CONFIG_RETPOLINE
   endif
 endif
 
+ifdef CONFIG_SLS
+  KBUILD_CFLAGS += -mharden-sls=all
+endif
+
 KBUILD_LDFLAGS += -m elf_$(UTS_MACHINE)
 
 ifdef CONFIG_LTO_CLANG