xref: /linux/tools/testing/selftests/powerpc/mm/Makefile (revision 16391bfc862342f285195013b73c1394fab28b97)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2d34b661bSMichael Ellermannoarg:
3d34b661bSMichael Ellerman	$(MAKE) -C ../
4d34b661bSMichael Ellerman
5*16391bfcSMichael EllermanTEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors wild_bctr \
6*16391bfcSMichael Ellerman		  large_vm_fork_separation
788baa78dSbamvor.zhangjian@huawei.comTEST_GEN_FILES := tempfile
824af8c5aSMichael Ellerman
97e0cf1c9SMichael Ellermantop_srcdir = ../../../../..
106faeeea4SMichael Ellermaninclude ../../lib.mk
11d34b661bSMichael Ellerman
1288baa78dSbamvor.zhangjian@huawei.com$(TEST_GEN_PROGS): ../harness.c
1388baa78dSbamvor.zhangjian@huawei.com
14a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/prot_sao: ../utils.c
1588baa78dSbamvor.zhangjian@huawei.com
16b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64
17*16391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64
18b7683fc6SMichael Ellerman
19a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile:
20a8ba798bSbamvor.zhangjian@huawei.com	dd if=/dev/zero of=$@ bs=64k count=1
213776c209SPaul Mackerras
22