blob: defe488d6bf111b5469e7c9059e0e92c91603360 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Michael Ellermand34b6612014-05-28 18:21:18 +10002noarg:
3 $(MAKE) -C ../
4
Shawn Anastasio12564482020-08-21 13:55:56 -05005TEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \
Sandipan Dasc27f2fd12020-07-27 09:30:40 +05306 large_vm_fork_separation bad_accesses pkey_exec_prot \
Michael Ellermanc9938a92020-07-24 19:25:24 +10007 pkey_siginfo stack_expansion_signal stack_expansion_ldst
8
Aneesh Kumar K.V93cad5f2019-09-24 09:22:54 +05309TEST_GEN_PROGS_EXTENDED := tlbie_test
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +080010TEST_GEN_FILES := tempfile
Michael Ellerman24af8c52016-07-11 15:25:18 +100011
Michael Ellerman7e0cf1c2018-09-28 14:53:18 +100012top_srcdir = ../../../../..
Michael Ellerman6faeeea2015-03-11 15:06:01 +110013include ../../lib.mk
Michael Ellermand34b6612014-05-28 18:21:18 +100014
Sandipan Dasc405b732020-06-04 18:26:09 +053015$(TEST_GEN_PROGS): ../harness.c ../utils.c
bamvor.zhangjian@huawei.com88baa782016-11-29 19:55:47 +080016
Shawn Anastasio12564482020-08-21 13:55:56 -050017$(OUTPUT)/prot_sao: ../utils.c
18
Michael Ellermanb7683fc2018-07-24 15:53:22 +100019$(OUTPUT)/wild_bctr: CFLAGS += -m64
Michael Ellerman16391bf2019-06-13 12:07:59 +100020$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
Michael Ellerman5eb7cfb2019-05-20 20:20:51 +100021$(OUTPUT)/bad_accesses: CFLAGS += -m64
Sandipan Das1addb642020-06-04 18:26:10 +053022$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
Sandipan Dasc27f2fd12020-07-27 09:30:40 +053023$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
Michael Ellermanb7683fc2018-07-24 15:53:22 +100024
Michael Ellermanc9938a92020-07-24 19:25:24 +100025$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
26
27$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
28$(OUTPUT)/stack_expansion_ldst: ../utils.c
29
bamvor.zhangjian@huawei.coma8ba7982016-11-29 19:55:52 +080030$(OUTPUT)/tempfile:
31 dd if=/dev/zero of=$@ bs=64k count=1
Paul Mackerras3776c202014-12-09 11:44:07 +053032
Aneesh Kumar K.V93cad5f2019-09-24 09:22:54 +053033$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
Sandipan Dasc27f2fd12020-07-27 09:30:40 +053034$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread