Commit 69f8117f authored by Michael Ellerman's avatar Michael Ellerman

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: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 266bac36
# SPDX-License-Identifier: GPL-2.0 # SPDX-License-Identifier: GPL-2.0
TEST_PROGS := cache_shape TEST_GEN_PROGS := cache_shape
all: $(TEST_PROGS)
$(TEST_PROGS): ../harness.c ../utils.c
top_srcdir = ../../../../.. top_srcdir = ../../../../..
include ../../lib.mk include ../../lib.mk
clean: $(TEST_GEN_PROGS): ../harness.c ../utils.c
rm -f $(TEST_PROGS) *.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment