]> Git Repo - linux.git/commit
selftests: error out if kernel header files are not yet built
authorJohn Hubbard <[email protected]>
Tue, 6 Jun 2023 07:16:37 +0000 (00:16 -0700)
committerAndrew Morton <[email protected]>
Mon, 19 Jun 2023 23:19:03 +0000 (16:19 -0700)
commit9fc96c7c19dfab67bf81b25fbc4f49b7752d5060
tree3ee6a1918520056eeffbec3eaac2423bbaf9ea09
parent01d6c48a828b4c1cda2fadcb811b432b757bdf8e
selftests: error out if kernel header files are not yet built

As per a discussion with Muhammad Usama Anjum [1], the following is how
one is supposed to build selftests:

    make headers && make -C tools/testing/selftests/mm

Change the selftest build system's lib.mk to fail out with a helpful
message if that prerequisite "make headers" has not been done yet.

[1] https://lore.kernel.org/all/bf910fa5-0c96-3707-cce4-5bcc656b6274@collabora.com/

[[email protected]: abort the make process the first time headers aren't detected]
Link: https://lkml.kernel.org/r/[email protected]
[[email protected]: fix out-of-tree builds]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: John Hubbard <[email protected]>
Signed-off-by: Anders Roxell <[email protected]>
Reviewed-by: Muhammad Usama Anjum <[email protected]>
Tested-by: Muhammad Usama Anjum <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Peter Xu <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Shuah Khan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
tools/testing/selftests/Makefile
tools/testing/selftests/lib.mk
This page took 0.045398 seconds and 4 git commands to generate.