1d2bf7932SNaveen N. Rao# SPDX-License-Identifier: GPL-2.0+ 2d2bf7932SNaveen N. Rao 3da650adaSThadeu Lima de Souza CascardoTEST_GEN_PROGS := rfi_flush entry_flush uaccess_flush spectre_v2 4*34f7f798SMichael EllermanTEST_PROGS := mitigation-patching.sh 5*34f7f798SMichael Ellerman 6a0aebae0SJoel Stanleytop_srcdir = ../../../../.. 7d2bf7932SNaveen N. Rao 8d2bf7932SNaveen N. RaoCFLAGS += -I../../../../../usr/include 9d2bf7932SNaveen N. Rao 10d2bf7932SNaveen N. Raoinclude ../../lib.mk 11d2bf7932SNaveen N. Rao 12d2bf7932SNaveen N. Rao$(TEST_GEN_PROGS): ../harness.c ../utils.c 13bf9c95e2SMichael Ellerman 14bf9c95e2SMichael Ellerman$(OUTPUT)/spectre_v2: CFLAGS += -m64 15c790c3d2SMichael Ellerman$(OUTPUT)/spectre_v2: ../pmu/event.c branch_loops.S 160d239f3bSDaniel Axtens$(OUTPUT)/rfi_flush: flush_utils.c 170d239f3bSDaniel Axtens$(OUTPUT)/entry_flush: flush_utils.c 18da650adaSThadeu Lima de Souza Cascardo$(OUTPUT)/uaccess_flush: flush_utils.c 19