Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lasse.collin@tukaani.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Lasse Collin and committed by
Linus Torvalds
0db7bd8c 40df43a1

+2 -2
+2 -2
scripts/xz_wrap.sh
··· 12 12 BCJ= 13 13 LZMA2OPTS= 14 14 15 - case $ARCH in 16 - x86|x86_64) BCJ=--x86 ;; 15 + case $SRCARCH in 16 + x86) BCJ=--x86 ;; 17 17 powerpc) BCJ=--powerpc ;; 18 18 ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;; 19 19 arm) BCJ=--arm ;;