mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 12:15:08 +07:00
0db7bd8ca0
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>
24 lines
562 B
Bash
24 lines
562 B
Bash
#!/bin/sh
|
|
#
|
|
# This is a wrapper for xz to compress the kernel image using appropriate
|
|
# compression options depending on the architecture.
|
|
#
|
|
# Author: Lasse Collin <lasse.collin@tukaani.org>
|
|
#
|
|
# This file has been put into the public domain.
|
|
# You can do whatever you want with this file.
|
|
#
|
|
|
|
BCJ=
|
|
LZMA2OPTS=
|
|
|
|
case $SRCARCH in
|
|
x86) BCJ=--x86 ;;
|
|
powerpc) BCJ=--powerpc ;;
|
|
ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;;
|
|
arm) BCJ=--arm ;;
|
|
sparc) BCJ=--sparc ;;
|
|
esac
|
|
|
|
exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB
|