Skip to content

Commit

Permalink
scripts/patch-kernel: digest kernel.org hosted .xz patches
Browse files Browse the repository at this point in the history
kernel.org is hosting patches and kernel compressed with xz (lzma2+).
Allow scripts/patch-kernel to decompress these files.

Signed-off-by: Shawn Landden <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
Shawn Landden authored and michal42 committed Mar 30, 2012
1 parent 468db96 commit 354fa22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/patch-kernel
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 354fa22

Please sign in to comment.