xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 1addb6444791f9e87fce0eb9882ec96a4a76e615)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d34b661bSMichael Ellermannoarg:
3d34b661bSMichael Ellerman	$(MAKE) -C ../
4d34b661bSMichael Ellerman
516391bfcSMichael EllermanTEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \
6*1addb644SSandipan Das		  large_vm_fork_separation bad_accesses pkey_exec_prot
793cad5f7SAneesh Kumar K.VTEST_GEN_PROGS_EXTENDED := tlbie_test
888baa78dSbamvor.zhangjian@huawei.comTEST_GEN_FILES := tempfile
924af8c5aSMichael Ellerman
107e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
116faeeea4SMichael Ellermaninclude ../../lib.mk
12d34b661bSMichael Ellerman
13c405b738SSandipan Das$(TEST_GEN_PROGS): ../harness.c ../utils.c
1488baa78dSbamvor.zhangjian@huawei.com
15a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/prot_sao: ../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
20*1addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64
21b7683fc6SMichael Ellerman
22a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
23a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
243776c209SPaul Mackerras
2593cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
26