lkml.org 
[lkml]   [2012]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] scripts: scripts/patch-kernel should be able to digest kernel.org hosted .xz patches
On 03/12/2012 03:13 PM, Shawn Landden wrote:

> kernel.org is hosting patches and kernel compressed with xz (lzma2+). Allow
> scripts/patch-kernel to decompress these files.

Other than xz file decompression, does scripts/patch-kernel
work for you in Linux 3.x kernel trees?


> Signed-off-by: Shawn Landden <shawnlandden@gmail.com>
> ---
> scripts/patch-kernel | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/patch-kernel b/scripts/patch-kernel
> index 20fb25c..d000ea3 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"



--
~Randy


\
 
 \ /
  Last update: 2012-03-13 20:01    [W:0.512 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site