xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision ff2632d7d08edc11e8bd0629e9fcfebab25c78b4)
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 \
698acee3fSNicholas Miehlbradt		  large_vm_fork_separation bad_accesses exec_prot pkey_exec_prot \
7e96a76eeSMichael Ellerman		  pkey_siginfo stack_expansion_signal stack_expansion_ldst \
8e96a76eeSMichael 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
16*108e5e68SMadhavan Srinivasaninclude ../flags.mk
17d34b661bSMichael Ellerman
18c405b738SSandipan Das$(TEST_GEN_PROGS): ../harness.c ../utils.c
1988baa78dSbamvor.zhangjian@huawei.com
2012564485SShawn Anastasio$(OUTPUT)/prot_sao: ../utils.c
2112564485SShawn Anastasio
22b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
2316391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
24e96a76eeSMichael Ellerman$(OUTPUT)/large_vm_gpr_corruption: CFLAGS += -m64
255eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64
2698acee3fSNicholas Miehlbradt$(OUTPUT)/exec_prot: CFLAGS += -m64
271addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
28c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
29b7683fc6SMichael Ellerman
30c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
31c9938a9dSMichael Ellerman
32c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
33c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: ../utils.c
34c9938a9dSMichael Ellerman
35a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
36d3cf1662SBenjamin Gray	dd if=/dev/zero of=$@ bs=64k count=1 status=none
373776c209SPaul Mackerras
3893cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
39c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread
40