diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-29 07:23:53 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-31 08:56:22 -0400 |
commit | 69f8117f17b332a68cd8f4bf8c2d0d3d5b84efc5 (patch) | |
tree | 5fa07a18c46ece1f4950306181f23b1275a5b4e8 | |
parent | 266bac361d5677e61a6815bd29abeb3bdced2b07 (diff) |
selftests/powerpc/cache_shape: Fix out-of-tree build
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>
-rw-r--r-- | tools/testing/selftests/powerpc/cache_shape/Makefile | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/testing/selftests/powerpc/cache_shape/Makefile b/tools/testing/selftests/powerpc/cache_shape/Makefile index ede4d3dae750..689f6c8ebcd8 100644 --- a/tools/testing/selftests/powerpc/cache_shape/Makefile +++ b/tools/testing/selftests/powerpc/cache_shape/Makefile | |||
@@ -1,12 +1,7 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
2 | TEST_PROGS := cache_shape | 2 | TEST_GEN_PROGS := cache_shape |
3 | |||
4 | all: $(TEST_PROGS) | ||
5 | |||
6 | $(TEST_PROGS): ../harness.c ../utils.c | ||
7 | 3 | ||
8 | top_srcdir = ../../../../.. | 4 | top_srcdir = ../../../../.. |
9 | include ../../lib.mk | 5 | include ../../lib.mk |
10 | 6 | ||
11 | clean: | 7 | $(TEST_GEN_PROGS): ../harness.c ../utils.c |
12 | rm -f $(TEST_PROGS) *.o | ||