diff options
author | Shawn Landden <shawnlandden@gmail.com> | 2012-03-12 15:13:37 -0700 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-03-30 15:23:36 +0200 |
commit | 354fa22fce767ac137099c8009a411bd0499816c (patch) | |
tree | 823542cf8046d5f7dafeddc71708dc3bd040996c /scripts/patch-kernel | |
parent | 468db96122152fad1a23fc9024523f35140e5675 (diff) | |
download | linux-3.10-354fa22fce767ac137099c8009a411bd0499816c.tar.gz linux-3.10-354fa22fce767ac137099c8009a411bd0499816c.tar.bz2 linux-3.10-354fa22fce767ac137099c8009a411bd0499816c.zip |
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>
Diffstat (limited to 'scripts/patch-kernel')
-rwxr-xr-x | scripts/patch-kernel | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/patch-kernel b/scripts/patch-kernel index 20fb25c2338..d000ea3a41f 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" |