Skip to content

Commit

Permalink
selftests/powerpc/cache_shape: Fix out-of-tree build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman committed Oct 31, 2018
1 parent 266bac3 commit 69f8117
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/testing/selftests/powerpc/cache_shape/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
TEST_PROGS := cache_shape

all: $(TEST_PROGS)

$(TEST_PROGS): ../harness.c ../utils.c
TEST_GEN_PROGS := cache_shape

top_srcdir = ../../../../..
include ../../lib.mk

clean:
rm -f $(TEST_PROGS) *.o
$(TEST_GEN_PROGS): ../harness.c ../utils.c

0 comments on commit 69f8117

Please sign in to comment.