Skip to contentSkip to conversation

scripts: scripts/patch-kernel should be able to digest kernel.org hosted .xz patches

PATCH In review Shawn Landden 3 participants 3 messages Mar 12, 2012 – Mar 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: scripts/patch-kernel should be able to 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.

---
 scripts/patch-kernel |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
scripts/patch-kernel +4 -0
index 20fb25c..d000ea3 100755
@@ -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"
Signature · 1 line
1.7.9.1
#1 lore raw
Quoted 2 lines · Shawn Landden

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?

Quoted 20 lines
---
 scripts/patch-kernel |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
scripts/patch-kernel +4 -0
index 20fb25c..d000ea3 100755
@@ -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"
Signature · 1 line
~Randy
#2 lore raw
In reply to Shawn Landden
Quoted 7 lines · Shawn Landden

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

---
 scripts/patch-kernel |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Applied to kbuild.git#misc, thanks.

Michal