diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2012-04-18 12:55:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-04-18 16:13:18 -0400 |
commit | 0db7bd8ca0033c1530bcefcbd49002364dba908a (patch) | |
tree | 69f699bf6c56ef3b2b801ffe6338e57d439a990c /scripts/xz_wrap.sh | |
parent | 40df43a17f3c465988ae96e61e1b8a31b78b76c2 (diff) |
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>
Diffstat (limited to 'scripts/xz_wrap.sh')
-rw-r--r-- | scripts/xz_wrap.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/xz_wrap.sh b/scripts/xz_wrap.sh index 17a5798c29da..7a2d372f4885 100644 --- a/scripts/xz_wrap.sh +++ b/scripts/xz_wrap.sh | |||
@@ -12,8 +12,8 @@ | |||
12 | BCJ= | 12 | BCJ= |
13 | LZMA2OPTS= | 13 | LZMA2OPTS= |
14 | 14 | ||
15 | case $ARCH in | 15 | case $SRCARCH in |
16 | x86|x86_64) BCJ=--x86 ;; | 16 | x86) BCJ=--x86 ;; |
17 | powerpc) BCJ=--powerpc ;; | 17 | powerpc) BCJ=--powerpc ;; |
18 | ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;; | 18 | ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;; |
19 | arm) BCJ=--arm ;; | 19 | arm) BCJ=--arm ;; |