Back to home page

OSCL-LXR

 
 

    


0001 #!/bin/sh
0002 #
0003 # This is a wrapper for xz to compress the kernel image using appropriate
0004 # compression options depending on the architecture.
0005 #
0006 # Author: Lasse Collin <lasse.collin@tukaani.org>
0007 #
0008 # This file has been put into the public domain.
0009 # You can do whatever you want with this file.
0010 #
0011 
0012 BCJ=
0013 LZMA2OPTS=
0014 
0015 case $SRCARCH in
0016         x86)            BCJ=--x86 ;;
0017         powerpc)        BCJ=--powerpc ;;
0018         ia64)           BCJ=--ia64; LZMA2OPTS=pb=4 ;;
0019         arm)            BCJ=--arm ;;
0020         sparc)          BCJ=--sparc ;;
0021 esac
0022 
0023 exec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB