linux/tools/testing/selftests/kexec
Moon Hee Lee 661e9cd196 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>
2025-07-22 15:10:52 -06:00
..
config
kexec_common_lib.sh
Makefile selftests/kexec: fix test_kexec_jump build 2025-07-22 15:10:52 -06:00
test_kexec_file_load.sh
test_kexec_jump.c selftests/kexec: Add x86_64 selftest for kexec-jump and exception handling 2025-04-10 12:17:14 +02:00
test_kexec_jump.sh selftests/kexec: Add x86_64 selftest for kexec-jump and exception handling 2025-04-10 12:17:14 +02:00
test_kexec_load.sh