KVM: selftests: Avoid using forced target for generating arm64 headers
authorOliver Upton <oliver.upton@linux.dev>
Fri, 27 Oct 2023 00:54:39 +0000 (00:54 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 30 Oct 2023 20:20:39 +0000 (20:20 +0000)
commit70c7b704ca7251b09dd4ce22a31b5bea8c797d24
tree18233bed0a0473f98386fbd1f81ae14f81d84890
parentfbb075c11663a6fb7beb4ef386e069e06594e229
KVM: selftests: Avoid using forced target for generating arm64 headers

The 'prepare' target that generates the arm64 sysreg headers had no
prerequisites, so it wound up forcing a rebuild of all KVM selftests
each invocation. Add a rule for the generated headers and just have
dependents use that for a prerequisite.

Reported-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Fixes: 9697d84cc3b6 ("KVM: selftests: Generate sysreg-defs.h and add to include path")
Tested-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Link: https://lore.kernel.org/r/20231027005439.3142015-3-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
tools/testing/selftests/kvm/Makefile