]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/arm64: Fix O= builds for the floating point tests
authorMark Brown <broonie@kernel.org>
Wed, 27 Apr 2022 18:19:54 +0000 (19:19 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Apr 2022 17:00:55 +0000 (18:00 +0100)
commitfb7f0b71f1a2bfa06469e2e8aad962d1fc98eb9d
tree57f7ed53052d4f51848e3d7cacd1928934615c8e
parent01fefab1613bed4a13da95e6e9e89b9cf3e1c7d4
selftests/arm64: Fix O= builds for the floating point tests

Currently the arm64 floating point tests don't support out of tree builds
due to two quirks of the kselftest build system. One is that when building
a program from multiple files we shouldn't separately compile the main
program to an object file as that will result in the pattern rule not
matching when adjusted for the output directory. The other is that we also
need to include $(OUTPUT) in the names of the binaries when specifying the
dependencies in order to ensure that they get picked up with O=.

Rewrite the dependencies for the executables to fix these issues. The
kselftest build system will ensure OUTPUT is always defined.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220427181954.357975-5-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/fp/Makefile