mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 22:34:33 +01:00
Forcefully override ARCH from x86_64 to x86 to handle the scenario where
the user specifies ARCH=x86_64 on the command line.
Fixes: 9af04539d4 ("KVM: selftests: Override ARCH for x86_64 instead of using ARCH_DIR")
Cc: [email protected]
Reported-by: David Matlack <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
17 lines
398 B
Makefile
17 lines
398 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
top_srcdir = ../../../..
|
|
include $(top_srcdir)/scripts/subarch.include
|
|
ARCH ?= $(SUBARCH)
|
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),arm64 s390 riscv x86 x86_64 loongarch))
|
|
# Top-level selftests allows ARCH=x86_64 :-(
|
|
ifeq ($(ARCH),x86_64)
|
|
override ARCH := x86
|
|
endif
|
|
include Makefile.kvm
|
|
else
|
|
# Empty targets for unsupported architectures
|
|
all:
|
|
clean:
|
|
endif
|