Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Ellerman and committed by
Shuah Khan
68bd42d9 2e8ec87d

+13 -12
+2 -2
tools/testing/selftests/powerpc/benchmarks/Makefile
··· 2 2 3 3 CFLAGS += -O2 4 4 5 - $(TEST_GEN_PROGS): ../harness.c 6 - 7 5 include ../../lib.mk 6 + 7 + $(TEST_GEN_PROGS): ../harness.c 8 8 9 9 $(OUTPUT)/context_switch: ../utils.c 10 10 $(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
+8 -8
tools/testing/selftests/powerpc/math/Makefile
··· 5 5 $(TEST_GEN_PROGS): ../harness.c 6 6 $(TEST_GEN_PROGS): CFLAGS += -O2 -g -pthread -m64 -maltivec 7 7 8 - $(OUTPUT)/pu_syscall: fpu_asm.S 9 - $(OUTPUT)/pu_preempt: fpu_asm.S 10 - $(OUTPUT)/pu_signal: fpu_asm.S 8 + $(OUTPUT)/fpu_syscall: fpu_asm.S 9 + $(OUTPUT)/fpu_preempt: fpu_asm.S 10 + $(OUTPUT)/fpu_signal: fpu_asm.S 11 11 12 - $(OUTPUT)/mx_syscall: vmx_asm.S 13 - $(OUTPUT)/mx_preempt: vmx_asm.S 14 - $(OUTPUT)/mx_signal: vmx_asm.S 12 + $(OUTPUT)/vmx_syscall: vmx_asm.S 13 + $(OUTPUT)/vmx_preempt: vmx_asm.S 14 + $(OUTPUT)/vmx_signal: vmx_asm.S 15 15 16 - vsx_preempt: CFLAGS += -mvsx 17 - vsx_preempt: vsx_asm.S 16 + $(OUTPUT)/vsx_preempt: CFLAGS += -mvsx 17 + $(OUTPUT)/vsx_preempt: vsx_asm.S
+2 -2
tools/testing/selftests/powerpc/pmu/Makefile
··· 31 31 DEFAULT_INSTALL_RULE := $(INSTALL_RULE) 32 32 override define INSTALL_RULE 33 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 35 endef 36 36 37 37 clean: 38 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 41 ebb: 42 42 TARGET=$@; BUILD_TARGET=$$OUTPUT/$$TARGET; mkdir -p $$BUILD_TARGET; $(MAKE) OUTPUT=$$BUILD_TARGET -k -C $$TARGET all
+1
tools/testing/selftests/powerpc/tm/Makefile
··· 14 14 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include 15 15 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread 16 16 17 + SIGNAL_CONTEXT_CHK_TESTS := $(patsubst %,$(OUTPUT)/%,$(SIGNAL_CONTEXT_CHK_TESTS)) 17 18 $(SIGNAL_CONTEXT_CHK_TESTS): tm-signal.S 18 19 $(SIGNAL_CONTEXT_CHK_TESTS): CFLAGS += -mhtm -m64 -mvsx