diff options
| author | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-09 03:56:30 -0500 |
|---|---|---|
| committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-02-14 10:02:27 -0500 |
| commit | 68bd42d97c30d51217b8c3b2b22fede577d8371c (patch) | |
| tree | be4a9a4a1bf802994e1a348e8d4861a47f916d2d | |
| parent | 2e8ec87dad68059876c6079e27912d819061bb4e (diff) | |
selftests/powerpc: Fix remaining fallout from recent changes
In benchmarks we need to use $(TEST_GEN_PROGS) after we include lib.mk,
because lib.mk does the substitution to add $(OUTPUT).
In math the vmx and fpu names were typoed so they no longer matched
correctly, put back the 'v' and 'f'.
In tm we need to substitute $(OUTPUT) into SIGNAL_CONTEXT_CHK_TESTS so
that the rule matches.
In pmu there is an extraneous ':' on the end of $$BUILD_TARGET for the
clean and install rules, which breaks the logic in the child Makefiles.
Fixes: a8ba798bc8ec ("selftests: enable O and KBUILD_OUTPUT")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
| -rw-r--r-- | tools/testing/selftests/powerpc/benchmarks/Makefile | 4 | ||||
| -rw-r--r-- | tools/testing/selftests/powerpc/math/Makefile | 16 | ||||
| -rw-r--r-- | tools/testing/selftests/powerpc/pmu/Makefile | 4 | ||||
| -rw-r--r-- | tools/testing/selftests/powerpc/tm/Makefile | 1 |
4 files changed, 13 insertions, 12 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/Makefile b/tools/testing/selftests/powerpc/benchmarks/Makefile index 286c6ed2378c..fb96a89bd953 100644 --- a/tools/testing/selftests/powerpc/benchmarks/Makefile +++ b/tools/testing/selftests/powerpc/benchmarks/Makefile | |||
| @@ -2,10 +2,10 @@ TEST_GEN_PROGS := gettimeofday context_switch mmap_bench futex_bench null_syscal | |||
| 2 | 2 | ||
| 3 | CFLAGS += -O2 | 3 | CFLAGS += -O2 |
| 4 | 4 | ||
| 5 | $(TEST_GEN_PROGS): ../harness.c | ||
| 6 | |||
| 7 | include ../../lib.mk | 5 | include ../../lib.mk |
| 8 | 6 | ||
| 7 | $(TEST_GEN_PROGS): ../harness.c | ||
| 8 | |||
| 9 | $(OUTPUT)/context_switch: ../utils.c | 9 | $(OUTPUT)/context_switch: ../utils.c |
| 10 | $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec | 10 | $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec |
| 11 | $(OUTPUT)/context_switch: LDLIBS += -lpthread | 11 | $(OUTPUT)/context_switch: LDLIBS += -lpthread |
diff --git a/tools/testing/selftests/powerpc/math/Makefile b/tools/testing/selftests/powerpc/math/Makefile index da9f42feaaac..fa8bae920c91 100644 --- a/tools/testing/selftests/powerpc/math/Makefile +++ b/tools/testing/selftests/powerpc/math/Makefile | |||
| @@ -5,13 +5,13 @@ include ../../lib.mk | |||
| 5 | $(TEST_GEN_PROGS): ../harness.c | 5 | $(TEST_GEN_PROGS): ../harness.c |
| 6 | $(TEST_GEN_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec | 6 | $(TEST_GEN_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec |
| 7 | 7 | ||
| 8 | $(OUTPUT)/pu_syscall: fpu_asm.S | 8 | $(OUTPUT)/fpu_syscall: fpu_asm.S |
| 9 | $(OUTPUT)/pu_preempt: fpu_asm.S | 9 | $(OUTPUT)/fpu_preempt: fpu_asm.S |
| 10 | $(OUTPUT)/pu_signal: fpu_asm.S | 10 | $(OUTPUT)/fpu_signal: fpu_asm.S |
| 11 | 11 | ||
| 12 | $(OUTPUT)/mx_syscall: vmx_asm.S | 12 | $(OUTPUT)/vmx_syscall: vmx_asm.S |
| 13 | $(OUTPUT)/mx_preempt: vmx_asm.S | 13 | $(OUTPUT)/vmx_preempt: vmx_asm.S |
| 14 | $(OUTPUT)/mx_signal: vmx_asm.S | 14 | $(OUTPUT)/vmx_signal: vmx_asm.S |
| 15 | 15 | ||
| 16 | vsx_preempt: CFLAGS += -mvsx | 16 | $(OUTPUT)/vsx_preempt: CFLAGS += -mvsx |
| 17 | vsx_preempt: vsx_asm.S | 17 | $(OUTPUT)/vsx_preempt: vsx_asm.S |
diff --git a/tools/testing/selftests/powerpc/pmu/Makefile b/tools/testing/selftests/powerpc/pmu/Makefile index 097b08acd867..e4e55d1d3e0f 100644 --- a/tools/testing/selftests/powerpc/pmu/Makefile +++ b/tools/testing/selftests/powerpc/pmu/Makefile | |||
| @@ -31,12 +31,12 @@ endef | |||
| 31 | DEFAULT_INSTALL_RULE := $(INSTALL_RULE) | 31 | DEFAULT_INSTALL_RULE := $(INSTALL_RULE) |
| 32 | override define INSTALL_RULE | 32 | override define INSTALL_RULE |
| 33 | $(DEFAULT_INSTALL_RULE) | 33 | $(DEFAULT_INSTALL_RULE) |
| 34 | TARGET=ebb; BUILD_TARGET=$$OUTPUT/$$TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET: -C $$TARGET install | 34 | TARGET=ebb; BUILD_TARGET=$$OUTPUT/$$TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET install |
| 35 | endef | 35 | endef |
| 36 | 36 | ||
| 37 | clean: | 37 | clean: |
| 38 | $(RM) $(TEST_GEN_PROGS) $(OUTPUT)/loop.o | 38 | $(RM) $(TEST_GEN_PROGS) $(OUTPUT)/loop.o |
| 39 | TARGET=ebb; BUILD_TARGET=$$OUTPUT/$$TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET: -C $$TARGET clean | 39 | TARGET=ebb; BUILD_TARGET=$$OUTPUT/$$TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean |
| 40 | 40 | ||
| 41 | ebb: | 41 | ebb: |
| 42 | TARGET=$@; BUILD_TARGET=$$OUTPUT/$$TARGET; mkdir -p $$BUILD_TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET -k -C $$TARGET all | 42 | TARGET=$@; BUILD_TARGET=$$OUTPUT/$$TARGET; mkdir -p $$BUILD_TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET -k -C $$TARGET all |
diff --git a/tools/testing/selftests/powerpc/tm/Makefile b/tools/testing/selftests/powerpc/tm/Makefile index 07da21769ff8..5576ee6a51f2 100644 --- a/tools/testing/selftests/powerpc/tm/Makefile +++ b/tools/testing/selftests/powerpc/tm/Makefile | |||
| @@ -14,5 +14,6 @@ $(OUTPUT)/tm-syscall: tm-syscall-asm.S | |||
| 14 | $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include | 14 | $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include |
| 15 | $(OUTPUT)/tm-tmspr: CFLAGS += -pthread | 15 | $(OUTPUT)/tm-tmspr: CFLAGS += -pthread |
| 16 | 16 | ||
| 17 | SIGNAL_CONTEXT_CHK_TESTS := $(patsubst %,$(OUTPUT)/%,$(SIGNAL_CONTEXT_CHK_TESTS)) | ||
| 17 | $(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S | 18 | $(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S |
| 18 | $(SIGNAL_CONTEXT_CHK_TESTS): CFLAGS += -mhtm -m64 -mvsx | 19 | $(SIGNAL_CONTEXT_CHK_TESTS): CFLAGS += -mhtm -m64 -mvsx |
