Skip to content

Commit 354fa22

Browse files
Shawn Landdenmichal42
authored andcommitted
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>
1 parent 468db96 commit 354fa22

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/patch-kernel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ findFile () {
116116
ext=".bz2"
117117
name="bzip2"
118118
uncomp="bunzip2 -dc"
119+
elif [ -r ${filebase}.xz ]; then
120+
ext=".xz"
121+
name="xz"
122+
uncomp="xz -dc"
119123
elif [ -r ${filebase}.zip ]; then
120124
ext=".zip"
121125
name="zip"

0 commit comments

Comments
 (0)