Skip to content

Commit

Permalink
xz: Enable BCJ filters on SPARC and 32-bit x86
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lasse Collin authored and Linus Torvalds committed Apr 18, 2012
1 parent 40df43a commit 0db7bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/xz_wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;;
Expand Down

0 comments on commit 0db7bd8

Please sign in to comment.