buildgcc: Apply patches with -p1

Hardware / Coreboot - Nico Huber [gmx.de] - 31 July 2016 10:37 UTC

Turned out that there are versions of the patch command that use the left hand side path for new files created by a patch. This behavior is incompatible with some of our patches. Stripping the topmost dir from the path with -p1 helps.

While touching that line, I couldn't resist to drop a command substituion (the `echo $patch`). It really shouldn't be necessary as the path to the patch file is already expanded in the head of the for loop.

Change-Id: I95398605db6dd54a8b08d8bc84c6602edbea6e10

4b48ed8 buildgcc: Apply patches with -p1
util/crossgcc/buildgcc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share