kselftest/arm64: build BTI tests in output directory
authorAndre Przywara <andre.przywara@arm.com>
Tue, 15 Aug 2023 14:59:31 +0000 (15:59 +0100)
committerWill Deacon <will@kernel.org>
Wed, 16 Aug 2023 13:43:47 +0000 (14:43 +0100)
commite08302ee46c9a5101e3902350ba5e27fcb18894b
tree7f8214d51b19a2752ea48a5ae497f820b6ff9727
parent46862da15e37efedb7d2d21e167f506c0b533772
kselftest/arm64: build BTI tests in output directory

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.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230815145931.2522557-1-andre.przywara@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/bti/Makefile
tools/testing/selftests/arm64/bti/gen/.gitignore [deleted file]