xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 12564485ed8caac3c18572793ec01330792c7191)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d34b661bSMichael Ellermannoarg:
3d34b661bSMichael Ellerman	$(MAKE) -C ../
4d34b661bSMichael Ellerman
5*12564485SShawn AnastasioTEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \
6c27f2fd1SSandipan Das		  large_vm_fork_separation bad_accesses pkey_exec_prot \
7c9938a9dSMichael Ellerman		  pkey_siginfo stack_expansion_signal stack_expansion_ldst
8c9938a9dSMichael Ellerman
993cad5f7SAneesh Kumar K.VTEST_GEN_PROGS_EXTENDED := tlbie_test
1088baa78dSbamvor.zhangjian@huawei.comTEST_GEN_FILES := tempfile
1124af8c5aSMichael Ellerman
127e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
136faeeea4SMichael Ellermaninclude ../../lib.mk
14d34b661bSMichael Ellerman
15c405b738SSandipan Das$(TEST_GEN_PROGS): ../harness.c ../utils.c
1688baa78dSbamvor.zhangjian@huawei.com
17*12564485SShawn Anastasio$(OUTPUT)/prot_sao: ../utils.c
18*12564485SShawn Anastasio
19b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
2016391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
215eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64
221addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
23c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
24b7683fc6SMichael Ellerman
25c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
26c9938a9dSMichael Ellerman
27c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
28c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: ../utils.c
29c9938a9dSMichael Ellerman
30a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
31a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
323776c209SPaul Mackerras
3393cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
34c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread
35