selftests/powerpc: Add a test of spectre_v2 mitigations
[sfrench/cifs-2.6.git] / tools / testing / selftests / powerpc / security / Makefile
index 85861c46b4457db2636c6f46cb551958cdfb73eb..d68e6031695c40480f13c049bdcf1cec827a58e7 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0+
 
-TEST_GEN_PROGS := rfi_flush
+TEST_GEN_PROGS := rfi_flush spectre_v2
 top_srcdir = ../../../../..
 
 CFLAGS += -I../../../../../usr/include
@@ -8,3 +8,4 @@ CFLAGS += -I../../../../../usr/include
 include ../../lib.mk
 
 $(TEST_GEN_PROGS): ../harness.c ../utils.c
+$(OUTPUT)/spectre_v2: ../pmu/event.c branch_loops.S