Skip to content

Commit

Permalink
selftests/powerpc/signal: Fix out-of-tree build
Browse files Browse the repository at this point in the history
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 signal_tm rule to use $(OUTPUT).

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Joel Stanley authored and Michael Ellerman committed Oct 31, 2018
1 parent c39b790 commit 2782534
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tools/testing/selftests/powerpc/signal/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
# SPDX-License-Identifier: GPL-2.0
TEST_PROGS := signal signal_tm

all: $(TEST_PROGS)

$(TEST_PROGS): ../harness.c ../utils.c signal.S
TEST_GEN_PROGS := signal signal_tm

CFLAGS += -maltivec
signal_tm: CFLAGS += -mhtm
$(OUTPUT)/signal_tm: CFLAGS += -mhtm

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

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

0 comments on commit 2782534

Please sign in to comment.