1#!/bin/sh 2# SPDX-License-Identifier: 0BSD 3# 4# This is a wrapper for xz to compress the kernel image using appropriate 5# compression options depending on the architecture. 6# 7# Author: Lasse Collin <lasse.collin@tukaani.org> 8 9BCJ= 10LZMA2OPTS= 11 12case $SRCARCH in 13 x86) BCJ=--x86 ;; 14 powerpc) BCJ=--powerpc ;; 15 arm) BCJ=--arm ;; 16 sparc) BCJ=--sparc ;; 17esac 18 19exec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB 20