]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/boot: Add sed script
authorOliver O'Halloran <oohall@gmail.com>
Thu, 22 Sep 2016 06:54:29 +0000 (16:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2016 04:20:44 +0000 (14:20 +1000)
commit1a13de6df9bf998a0b6d9bfa4255cfc711ea8f0f
tree4c90cba3d521a7d764868ff6fe58b273fe15b76d
parent96c447077c2f66ed4117fd832a84c40265dbd9f2
powerpc/boot: Add sed script

The powerpc boot wrapper is potentially compiled with a separate
toolchain and/or toolchain flags than the rest of the kernel. The usual
case is a 64-bit big endian kernel builds a 32-bit big endian wrapper.

The main problem with this is that the wrapper does not have access to
the kernel headers (without a lot of gross hacks). To get around this
the required headers are copied into the build directory via several sed
scripts which rewrite problematic includes. This patch moves these
fixups out of the makefile into a separate .sed script file to clean up
makefile slightly.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[mpe: Reword first paragraph of change log a little]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/Makefile
arch/powerpc/boot/fixup-headers.sed [new file with mode: 0644]