Commit b6f534d1 authored by Michael Ellerman's avatar Michael Ellerman

selftests/powerpc: Fix copyloops build since Power4 assembler change

The recent commit 15a3204d ("powerpc/64s: Set assembler machine
type to POWER4") set the machine type in our ASFLAGS when building the
kernel, and removed some ".machine power4" directives from various asm
files.

This broke the selftests build on old toolchains (that don't assume
Power4), because we build the kernel source files into the selftests
using different ASFLAGS.

The fix is simply to add -mpower4 to the selftest ASFLAGS as well.

Fixes: 15a3204d ("powerpc/64s: Set assembler machine type to POWER4")
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6232774f
...@@ -5,8 +5,8 @@ CFLAGS += -I$(CURDIR) ...@@ -5,8 +5,8 @@ CFLAGS += -I$(CURDIR)
CFLAGS += -D SELFTEST CFLAGS += -D SELFTEST
CFLAGS += -maltivec CFLAGS += -maltivec
# Use our CFLAGS for the implicit .S rule # Use our CFLAGS for the implicit .S rule & set the asm machine type
ASFLAGS = $(CFLAGS) ASFLAGS = $(CFLAGS) -Wa,-mpower4
TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7 TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7
EXTRA_SOURCES := validate.c ../harness.c EXTRA_SOURCES := validate.c ../harness.c
......
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