diff options
author | Sean Christopherson <seanjc@google.com> | 2024-11-27 16:55:45 -0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-12-18 14:15:03 -0800 |
commit | 43fbd8cd389faa9760c5152b1c58e893c812953b (patch) | |
tree | e07581f8abb18ef2e3c69166f843db52f6eb91b6 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
parent | b6c304aec6483f6cd254df690eda35b225cd856c (diff) | |
download | linux-43fbd8cd389faa9760c5152b1c58e893c812953b.tar.gz linux-43fbd8cd389faa9760c5152b1c58e893c812953b.tar.bz2 linux-43fbd8cd389faa9760c5152b1c58e893c812953b.zip |
KVM: selftests: Provide empty 'all' and 'clean' targets for unsupported ARCHs
Provide empty targets for KVM selftests if the target architecture is
unsupported to make it obvious which architectures are supported, and so
that various side effects don't fail and/or do weird things, e.g. as is,
"mkdir -p $(sort $(dir $(TEST_GEN_PROGS)))" fails due to a missing operand,
and conversely, "$(shell mkdir -p $(sort $(OUTPUT)/$(ARCH_DIR) ..." will
create an empty, useless directory for the unsupported architecture.
Move the guts of the Makefile to Makefile.kvm so that it's easier to see
that the if-statement effectively guards all of KVM selftests.
Reported-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Acked-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20241128005547.4077116-15-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions