| 1 |
# SPDX-License-Identifier: GPL-2.0+ |
| 2 |
|
| 3 |
TEST_GEN_PROGS := rfi_flush entry_flush uaccess_flush spectre_v2 |
| 4 |
TEST_PROGS := mitigation-patching.sh |
| 5 |
|
| 6 |
top_srcdir = ../../../../.. |
| 7 |
|
| 8 |
include ../../lib.mk |
| 9 |
include ../flags.mk |
| 10 |
|
| 11 |
CFLAGS += $(KHDR_INCLUDES) |
| 12 |
|
| 13 |
$(TEST_GEN_PROGS): ../harness.c ../utils.c |
| 14 |
|
| 15 |
$(OUTPUT)/spectre_v2: CFLAGS += -m64 |
| 16 |
$(OUTPUT)/spectre_v2: ../pmu/event.c branch_loops.S |
| 17 |
$(OUTPUT)/rfi_flush: flush_utils.c |
| 18 |
$(OUTPUT)/entry_flush: flush_utils.c |
| 19 |
$(OUTPUT)/uaccess_flush: flush_utils.c |