mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 15:14:18 +08:00
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"@;
|