On Tue, 15 Aug 2023 15:59:31 +0100, Andre Przywara wrote:
The arm64 BTI selftests are currently built in the source directory, then the generated binaries are copied to the output directory. This leaves the object files around in a potentially otherwise pristine source tree, tainting it for out-of-tree kernel builds.
Prepend $(OUTPUT) to every reference to an object file in the Makefile, and remove the extra handling and copying. This puts all generated files under the output directory.
[...]
Applied to arm64 (for-next/selftests), thanks!
[1/1] kselftest/arm64: build BTI tests in output directory https://git.kernel.org/arm64/c/e08302ee46c9
Cheers,