xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 29e3ea8cbd2958cf237b84652ec236803f2c6202)
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 \
7c9938a9dSMichael Ellerman		  pkey_siginfo stack_expansion_signal stack_expansion_ldst
8*29e3ea8cSJordan NietheTEST_PROGS := stress_code_patching.sh
9c9938a9dSMichael Ellerman
1093cad5f7SAneesh Kumar K.VTEST_GEN_PROGS_EXTENDED := tlbie_test
1188baa78dSbamvor.zhangjian@huawei.comTEST_GEN_FILES := tempfile
1224af8c5aSMichael Ellerman
137e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
146faeeea4SMichael Ellermaninclude ../../lib.mk
15d34b661bSMichael Ellerman
16c405b738SSandipan Das$(TEST_GEN_PROGS): ../harness.c ../utils.c
1788baa78dSbamvor.zhangjian@huawei.com
1812564485SShawn Anastasio$(OUTPUT)/prot_sao: ../utils.c
1912564485SShawn Anastasio
20b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
2116391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
225eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64
231addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
24c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
25b7683fc6SMichael Ellerman
26c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
27c9938a9dSMichael Ellerman
28c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
29c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: ../utils.c
30c9938a9dSMichael Ellerman
31a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
32a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
333776c209SPaul Mackerras
3493cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
35c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread
36