selftests/powerpc/cache_shape: Fix out-of-tree build
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Oct 2018 11:23:53 +0000 (22:23 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:06 +0000 (09:17 +0100)
commita125df22d134c341a1e7a998958ecaa2969256cd
tree4bece2b7fb2c4b64c8941cdf6ecb5c0898f09f97
parent024cd793bbe1f3a0417f8b1f7a44fe9efc7a0f02
selftests/powerpc/cache_shape: Fix out-of-tree build

[ Upstream commit 69f8117f17b332a68cd8f4bf8c2d0d3d5b84efc5 ]

Use TEST_GEN_PROGS and don't redefine all, this makes the out-of-tree
build work. We need to move the extra dependencies below the include
of lib.mk, because it adds the $(OUTPUT) prefix if it's defined.

We can also drop the clean rule, lib.mk does it for us.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/powerpc/cache_shape/Makefile