selftests/powerpc/ptrace: Fix out-of-tree build
authorJoel Stanley <joel@jms.id.au>
Mon, 29 Oct 2018 11:23:49 +0000 (22:23 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:05 +0000 (09:17 +0100)
commitf74f406bbd0b29d58237a5d14d6cff69e00cf511
tree95d1cec78dd5c0ccc21201db4dd92b0c532c64cd
parent57aab8f0a33d5eab59d2108de0644f209941f39e
selftests/powerpc/ptrace: Fix out-of-tree build

[ Upstream commit c39b79082a38a4f8c801790edecbbb4d62ed2992 ]

We should use TEST_GEN_PROGS, not TEST_PROGS. That tells the selftests
makefile (lib.mk) that those tests are generated (built), and so it
adds the $(OUTPUT) prefix for us, making the out-of-tree build work
correctly.

It also means we don't need our own clean rule, lib.mk does it.

We also have to update the ptrace-pkey and core-pkey rules to use
$(OUTPUT).

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