Skip to contentSkip to conversation

xz: Enable BCJ filters on SPARC and 32-bit x86

PATCH In review Lasse Collin 2 participants 2 messages Apr 18, 2012 Xz embedded

lore
Share & tools
lore

Lasse Collin

author maintainer
#0 lore raw

PATCH 1/1 xz: Enable BCJ filters on SPARC and 32-bit x86

From: Lasse Collin <[email protected]>

The BCJ filters were meant to be enabled already on these archs, but the xz_wrap.sh script was buggy. Enabling the filters should give smaller kernel images.

xz_wrap.sh will now use $SRCARCH instead of $ARCH to detect the architecture. That way it doesn't need to care about the subarchs (like i386 vs. x86_64) since the BCJ filters don't care either.

---

scripts/xz_wrap.sh +2 -2
diff -uprN linux-3.3.orig/scripts/xz_wrap.sh linux-3.3/scripts/xz_wrap.sh
@@ -12,8 +12,8 @@
 BCJ=
 LZMA2OPTS=
 
-case $ARCH in
-	x86|x86_64)     BCJ=--x86 ;;
+case $SRCARCH in
+	x86)            BCJ=--x86 ;;
 	powerpc)        BCJ=--powerpc ;;
 	ia64)           BCJ=--ia64; LZMA2OPTS=pb=4 ;;
 	arm)            BCJ=--arm ;;
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Lasse Collin

From: Lasse Collin <[email protected]>

The BCJ filters were meant to be enabled already on these archs, but the xz_wrap.sh script was buggy. Enabling the filters should give smaller kernel images.

Quoted 7 lines

xz_wrap.sh will now use $SRCARCH instead of $ARCH to detect the architecture. That way it doesn't need to care about the subarchs (like i386 vs. x86_64) since the BCJ filters don't care either.