Revision 707e6f0bc40b4db1fae616b8825c9e0f1231f873 authored by Sonic Zhang on 20 August 2014, 10:04:32 UTC, committed by Steven Miao on 23 April 2015, 13:34:29 UTC
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
1 parent ea9b706
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