xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision c9938a9dac95be7650218cdd8e9d1f882e7b5691)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d34b661bSMichael Ellermannoarg:
3d34b661bSMichael Ellerman	$(MAKE) -C ../
4d34b661bSMichael Ellerman
55c9fa16eSNicholas PigginTEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot segv_errors wild_bctr \
6c27f2fd1SSandipan Das		  large_vm_fork_separation bad_accesses pkey_exec_prot \
7*c9938a9dSMichael Ellerman		  pkey_siginfo stack_expansion_signal stack_expansion_ldst
8*c9938a9dSMichael 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
17b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
1816391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
195eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64
201addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
21c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: CFLAGS += -m64
22b7683fc6SMichael Ellerman
23*c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c
24*c9938a9dSMichael Ellerman
25*c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector
26*c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: ../utils.c
27*c9938a9dSMichael Ellerman
28a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
29a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
303776c209SPaul Mackerras
3193cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
32c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread
33