diff options
author | Joel Stanley <joel@jms.id.au> | 2018-10-29 07:23:50 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-10-31 08:56:20 -0400 |
commit | 27825349d7b238533a47e3d98b8bb0efd886b752 (patch) | |
tree | efaacc878eb98b67e3a561b3d4c21c5f55172fdf | |
parent | c39b79082a38a4f8c801790edecbbb4d62ed2992 (diff) |
selftests/powerpc/signal: Fix out-of-tree build
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>
-rw-r--r-- | tools/testing/selftests/powerpc/signal/Makefile | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tools/testing/selftests/powerpc/signal/Makefile b/tools/testing/selftests/powerpc/signal/Makefile index 1fca25c6ace0..209a958dca12 100644 --- a/tools/testing/selftests/powerpc/signal/Makefile +++ b/tools/testing/selftests/powerpc/signal/Makefile | |||
@@ -1,15 +1,10 @@ | |||
1 | # SPDX-License-Identifier: GPL-2.0 | 1 | # SPDX-License-Identifier: GPL-2.0 |
2 | TEST_PROGS := signal signal_tm | 2 | TEST_GEN_PROGS := signal signal_tm |
3 | |||
4 | all: $(TEST_PROGS) | ||
5 | |||
6 | $(TEST_PROGS): ../harness.c ../utils.c signal.S | ||
7 | 3 | ||
8 | CFLAGS += -maltivec | 4 | CFLAGS += -maltivec |
9 | signal_tm: CFLAGS += -mhtm | 5 | $(OUTPUT)/signal_tm: CFLAGS += -mhtm |
10 | 6 | ||
11 | top_srcdir = ../../../../.. | 7 | top_srcdir = ../../../../.. |
12 | include ../../lib.mk | 8 | include ../../lib.mk |
13 | 9 | ||
14 | clean: | 10 | $(TEST_GEN_PROGS): ../harness.c ../utils.c signal.S |
15 | rm -f $(TEST_PROGS) *.o | ||