selftests/powerpc: Fix copyloops build since Power4 assembler change
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 3 Apr 2018 11:24:59 +0000 (21:24 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 3 Apr 2018 11:50:09 +0000 (21:50 +1000)
commitb6f534d1a642a9b6263fd52df30806171fbc331e
treeed8bdaad46c8fecdb52c732946360bdd9abab021
parent6232774f1599028a15418179d17f7df47ede770a
selftests/powerpc: Fix copyloops build since Power4 assembler change

The recent commit 15a3204d24a3 ("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: 15a3204d24a3 ("powerpc/64s: Set assembler machine type to POWER4")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/copyloops/Makefile