xref: /OK3568_Linux_fs/kernel/tools/testing/selftests/prctl/Makefile (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyunifndef CROSS_COMPILE
3*4882a593Smuzhiyununame_M := $(shell uname -m 2>/dev/null || echo not)
4*4882a593SmuzhiyunARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunifeq ($(ARCH),x86)
7*4882a593SmuzhiyunTEST_PROGS := disable-tsc-ctxt-sw-stress-test disable-tsc-on-off-stress-test \
8*4882a593Smuzhiyun		disable-tsc-test
9*4882a593Smuzhiyunall: $(TEST_PROGS)
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninclude ../lib.mk
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunclean:
14*4882a593Smuzhiyun	rm -fr $(TEST_PROGS)
15*4882a593Smuzhiyunendif
16*4882a593Smuzhiyunendif
17