selftests: avoid KBUILD_OUTPUT dir cluttering with selftest objects
authorShuah Khan <skhan@linuxfoundation.org>
Tue, 14 May 2019 20:43:44 +0000 (14:43 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 14 May 2019 23:37:41 +0000 (17:37 -0600)
commit61c2018c0743fe0c9ca68e308b5727b8a7c3d544
tree090b2307603d829ae63dde5b38bc451d3f9fbeba
parent11ebd85a07e0c84b037a47a19a040b31d7869df3
selftests: avoid KBUILD_OUTPUT dir cluttering with selftest objects

Running "make kselftest" or building selftests when KBUILD_OUTPUT
is set, will create selftest objects in the KBUILD_OUTPUT directory.
This could be undesirable especially when user didn't intend to
relocate selftest objects.

Use KBUILD_OUTPUT/kselftest to create selftest objects instead of
cluttering the main directory.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/Makefile