summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/uintr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/uintr/Makefile')
-rw-r--r--tools/testing/selftests/uintr/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/testing/selftests/uintr/Makefile b/tools/testing/selftests/uintr/Makefile
new file mode 100644
index 000000000000..f8bcb1476f1c
--- /dev/null
+++ b/tools/testing/selftests/uintr/Makefile
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0
+
+CAN_BUILD_UINTR := $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_64bit_program.c -muintr)
+
+ifeq ($(CAN_BUILD_UINTR),1)
+CFLAGS += -g -muintr -mgeneral-regs-only
+LDLIBS += -lpthread
+
+TEST_GEN_PROGS = ipc_base \
+ syscall_handler \
+ syscall_vector \
+ syscall_sender \
+ syscall_flags \
+ senduipi_instr
+
+TEST_GEN_PROGS_EXTENDED = context_switch_ipc
+
+endif
+
+include ../lib.mk