xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 5eb7cfb3a2b178f3d443301cda0825bb9f475657)
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*5eb7cfb3SMichael Ellerman		  large_vm_fork_separation bad_accesses
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
1388baa78dSbamvor.zhangjian@huawei.com$(TEST_GEN_PROGS): ../harness.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
19*5eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64
20b7683fc6SMichael Ellerman
21a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
22a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
233776c209SPaul Mackerras
2493cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread
25