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:13:52 +0000 (09:13 +0100)
commit9679a2e9e67709ce9db8ee3806d6937be4e9c1ae
treea06d43d4850d5677674bfa07aa91e2c24063f1e2
parent0a67a82b5673838c09beb292e6e2d1c643db1246
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