xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision e96a76ee5283d509f2bf45133d147e77f73a1b15)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d34b661bSMichael Ellermannoarg:
3d34b661bSMichael Ellerman	$(MAKE) -C ../
4d34b661bSMichael Ellerman
512564485SShawn 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 \
7*e96a76eeSMichael Ellerman		  pkey_siginfo stack_expansion_signal stack_expansion_ldst \
8*e96a76eeSMichael Ellerman		  large_vm_gpr_corruption
929e3ea8cSJordan NietheTEST_PROGS := stress_code_patching.sh
10c9938a9dSMichael Ellerman
1193cad5f7SAneesh Kumar K.VTEST_GEN_PROGS_EXTENDED := tlbie_test
1288baa78dSbamvor.zhangjian@huawei.comTEST_GEN_FILES := tempfile
1324af8c5aSMichael Ellerman
147e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
156faeeea4SMichael Ellermaninclude ../../lib.mk
16d34b661bSMichael Ellerman
17c405b738SSandipan Das$(TEST_GEN_PROGS): ../harness.c ../utils.c
1888baa78dSbamvor.zhangjian@huawei.com
1912564485SShawn Anastasio$(OUTPUT)/prot_sao: ../utils.c
2012564485SShawn Anastasio
21b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
2216391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
23*e96a76eeSMichael Ellerman$(OUTPUT)/large_vm_gpr_corruption: CFLAGS += -m64
245eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64
251addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
26c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
27b7683fc6SMichael Ellerman
28c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
29c9938a9dSMichael Ellerman
30c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
31c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: ../utils.c
32c9938a9dSMichael Ellerman
33a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
34a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
353776c209SPaul Mackerras
3693cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
37c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread
38