Skip to content

Commit 0db7bd8

Browse files
Larhzutorvalds
authored andcommitted
xz: Enable BCJ filters on SPARC and 32-bit x86
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. Signed-off-by: Lasse Collin <[email protected]> Acked-by: Jan Beulich <[email protected]> Acked-by: H. Peter Anvin <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 40df43a commit 0db7bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/xz_wrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
BCJ=
1313
LZMA2OPTS=
1414

15-
case $ARCH in
16-
x86|x86_64) BCJ=--x86 ;;
15+
case $SRCARCH in
16+
x86) BCJ=--x86 ;;
1717
powerpc) BCJ=--powerpc ;;
1818
ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;;
1919
arm) BCJ=--arm ;;

0 commit comments

Comments
 (0)