xref: /linux/tools/testing/selftests/kvm/Makefile (revision 2566de3e06a35b6517bcab11fd25b65ef90fd180)
1# SPDX-License-Identifier: GPL-2.0-only
2top_srcdir = ../../../..
3include $(top_srcdir)/scripts/subarch.include
4ARCH            ?= $(SUBARCH)
5
6ifeq ($(ARCH),$(filter $(ARCH),arm64 s390 riscv x86 x86_64 loongarch))
7# Top-level selftests allows ARCH=x86_64 :-(
8ifeq ($(ARCH),x86_64)
9	ARCH := x86
10endif
11include Makefile.kvm
12else
13# Empty targets for unsupported architectures
14all:
15clean:
16endif
17