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 \ 6*98acee3fSNicholas 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 16d34b661bSMichael Ellerman 17c405b738SSandipan Das$(TEST_GEN_PROGS): ../harness.c ../utils.c 1888baa78dSbamvor.zhangjian@huawei.com 1912564485SShawn Anastasio$(OUTPUT)/prot_sao: ../utils.c 2012564485SShawn Anastasio 21b7683fc6SMichael Ellerman$(OUTPUT)/wild_bctr: CFLAGS += -m64 2216391bfcSMichael Ellerman$(OUTPUT)/large_vm_fork_separation: CFLAGS += -m64 23e96a76eeSMichael Ellerman$(OUTPUT)/large_vm_gpr_corruption: CFLAGS += -m64 245eb7cfb3SMichael Ellerman$(OUTPUT)/bad_accesses: CFLAGS += -m64 25*98acee3fSNicholas Miehlbradt$(OUTPUT)/exec_prot: CFLAGS += -m64 261addb644SSandipan Das$(OUTPUT)/pkey_exec_prot: CFLAGS += -m64 27c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: CFLAGS += -m64 28b7683fc6SMichael Ellerman 29c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_signal: ../utils.c ../pmu/lib.c 30c9938a9dSMichael Ellerman 31c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: CFLAGS += -fno-stack-protector 32c9938a9dSMichael Ellerman$(OUTPUT)/stack_expansion_ldst: ../utils.c 33c9938a9dSMichael Ellerman 34a8ba798bSbamvor.zhangjian@huawei.com$(OUTPUT)/tempfile: 35a8ba798bSbamvor.zhangjian@huawei.com dd if=/dev/zero of=$@ bs=64k count=1 363776c209SPaul Mackerras 3793cad5f7SAneesh Kumar K.V$(OUTPUT)/tlbie_test: LDLIBS += -lpthread 38c27f2fd1SSandipan Das$(OUTPUT)/pkey_siginfo: LDLIBS += -lpthread 39