From: Shawn Landden Date: Mon, 12 Mar 2012 22:13:37 +0000 (-0700) Subject: scripts/patch-kernel: digest kernel.org hosted .xz patches X-Git-Tag: MMI-PSA29.97-13-9~17094^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=354fa22fce767ac137099c8009a411bd0499816c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git scripts/patch-kernel: digest hosted .xz patches kernel.org is hosting patches and kernel compressed with xz (lzma2+). Allow scripts/patch-kernel to decompress these files. Signed-off-by: Shawn Landden Signed-off-by: Michal Marek --- diff --git a/scripts/patch-kernel b/scripts/patch-kernel index 20fb25c23382..d000ea3a41fd 100755 --- a/scripts/patch-kernel +++ b/scripts/patch-kernel @@ -116,6 +116,10 @@ findFile () { ext=".bz2" name="bzip2" uncomp="bunzip2 -dc" + elif [ -r ${filebase}.xz ]; then + ext=".xz" + name="xz" + uncomp="xz -dc" elif [ -r ${filebase}.zip ]; then ext=".zip" name="zip"