powerpc/boot: Fix rebuild when changing kernel endian
commitf0f7fe1ac35330f077357c787ec5bd8958bf300d
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Nov 2016 10:14:35 +0000 (21 21:14 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 29 Nov 2016 10:42:34 +0000 (29 21:42 +1100)
tree8b4212d94f2270747327af7a82d9f666bfcb5ee9
parent42d0c932b05b06f04ac66439b4b14be5a83db114
powerpc/boot: Fix rebuild when changing kernel endian

Now that we don't set ARCH incorrectly when calling the boot Makefile,
we can use the generic cpp_lds_S rule for converting our zImage.lds.S
into zImage.lds.

The main advantage of using the generic rule is that it correctly uses
if_changed, which means we correctly regenerate the linker script when
switching endian. Fixing that means we are finally able to build one
endian and then rebuild the other endian without requiring to clean
between builds.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/Makefile