forked from luck/tmp_suning_uos_patched
1a13de6df9
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>
13 lines
379 B
Sed
13 lines
379 B
Sed
# Copyright 2016 IBM Corporation.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License version 2 or later as
|
|
# published by the Free Software Foundation.
|
|
|
|
s@#include <linux/decompress/mm\.h>@@;
|
|
s@\"zlib_inflate/\([^\"]*\).*@"\1"@;
|
|
s@<linux/kernel.h>@<stddef.h>@;
|
|
|
|
s@__used@@;
|
|
s@<linux/\([^>]*\).*@"\1"@;
|