]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/kexec: fix test_kexec_jump build
authorMoon Hee Lee <moonhee.lee.ca@gmail.com>
Wed, 2 Jul 2025 17:17:05 +0000 (10:17 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 22 Jul 2025 21:10:52 +0000 (15:10 -0600)
commit661e9cd196598c7d2502260ebbe60970546cca35
tree36ae4007fe04d604d4e2ef966ebbae7c9c0572c3
parent07b7c2b4eca3f83ce9cd5ee3fa1c7c001d721c69
selftests/kexec: fix test_kexec_jump build

The test_kexec_jump program builds correctly when invoked from the top-level
selftests/Makefile, which explicitly sets the OUTPUT variable. However,
building directly in tools/testing/selftests/kexec fails with:

  make: *** No rule to make target '/test_kexec_jump', needed by 'test_kexec_jump.sh'.  Stop.

This failure occurs because the Makefile rule relies on $(OUTPUT), which is
undefined in direct builds.

Fix this by listing test_kexec_jump in TEST_GEN_PROGS, the standard way to
declare generated test binaries in the kselftest framework. This ensures the
binary is built regardless of invocation context and properly removed by
make clean.

Link: https://lore.kernel.org/r/20250702171704.22559-2-moonhee.lee.ca@gmail.com
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Moon Hee Lee <moonhee.lee.ca@gmail.com>
Acked-by: Baoquan He <bhe@redhat.com>
Acked-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kexec/Makefile