1 # SPDX-License-Identifier: GPL-2.0
2 SIGNAL_CONTEXT_CHK_TESTS
:= tm-signal-context-chk-gpr tm-signal-context-chk-fpu \
3 tm-signal-context-chk-vmx tm-signal-context-chk-vsx
5 TEST_GEN_PROGS
:= tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \
7 $(SIGNAL_CONTEXT_CHK_TESTS
) tm-sigreturn
9 top_srcdir
= ..
/..
/..
/..
/..
12 $(TEST_GEN_PROGS
): ..
/harness.c ..
/utils.c
16 $(OUTPUT
)/tm-syscall
: tm-syscall-asm.S
17 $(OUTPUT
)/tm-syscall
: CFLAGS
+= -I..
/..
/..
/..
/..
/usr
/include
18 $(OUTPUT
)/tm-tmspr
: CFLAGS
+= -pthread
19 $(OUTPUT
)/tm-vmx-unavail
: CFLAGS
+= -pthread
-m64
20 $(OUTPUT
)/tm-resched-dscr
: ..
/pmu
/lib.c
21 $(OUTPUT
)/tm-unavailable
: CFLAGS
+= -O0
-pthread
-m64
-Wno-error
=uninitialized
-mvsx
22 $(OUTPUT
)/tm-trap
: CFLAGS
+= -O0
-pthread
-m64
24 SIGNAL_CONTEXT_CHK_TESTS
:= $(patsubst %,$(OUTPUT
)/%,$(SIGNAL_CONTEXT_CHK_TESTS
))
25 $(SIGNAL_CONTEXT_CHK_TESTS
): tm-signal.S
26 $(SIGNAL_CONTEXT_CHK_TESTS
): CFLAGS
+= -mhtm
-m64
-mvsx