Permalink
Browse files

scripts/patch-kernel: digest kernel.org 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 <shawnlandden@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information...
1 parent 468db96 commit 354fa22fce767ac137099c8009a411bd0499816c @shawnl shawnl committed with michal42 Mar 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/patch-kernel
View
@@ -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"

0 comments on commit 354fa22

Please sign in to comment.