Revision cfb89f2e7505c6823020a18bbdc5410284305234 authored by Mark Brown on 24 August 2016, 18:05:25 UTC, committed by Mark Brown on 24 August 2016, 18:05:25 UTC
7 parent s e8f0f8a + 209c721 + 06746c6 + a871967 + 1bc610e + 1f85e11 + fa54aad
Raw File
xz_wrap.sh
#!/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
back to top