#!/bin/sh # # This is a wrapper for xz to compress the kernel image using appropriate # compression options depending on the architecture. # # Author: Lasse Collin # # This file has been put into the public domain. # You can do whatever you want with this file. # setglobal BCJ = '' setglobal LZMA2OPTS = '' match $SRCARCH { with x86 setglobal BCJ = '--x86' with powerpc setglobal BCJ = '--powerpc' with ia64 setglobal BCJ = '--ia64'; setglobal LZMA2OPTS = 'pb=4' with arm setglobal BCJ = '--arm' with sparc setglobal BCJ = '--sparc' } exec xz --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB