18c2ecf20Sopenharmony_ci#!/bin/sh 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# This is a wrapper for xz to compress the kernel image using appropriate 48c2ecf20Sopenharmony_ci# compression options depending on the architecture. 58c2ecf20Sopenharmony_ci# 68c2ecf20Sopenharmony_ci# Author: Lasse Collin <lasse.collin@tukaani.org> 78c2ecf20Sopenharmony_ci# 88c2ecf20Sopenharmony_ci# This file has been put into the public domain. 98c2ecf20Sopenharmony_ci# You can do whatever you want with this file. 108c2ecf20Sopenharmony_ci# 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciBCJ= 138c2ecf20Sopenharmony_ciLZMA2OPTS= 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_cicase $SRCARCH in 168c2ecf20Sopenharmony_ci x86) BCJ=--x86 ;; 178c2ecf20Sopenharmony_ci powerpc) BCJ=--powerpc ;; 188c2ecf20Sopenharmony_ci ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;; 198c2ecf20Sopenharmony_ci arm) BCJ=--arm ;; 208c2ecf20Sopenharmony_ci sparc) BCJ=--sparc ;; 218c2ecf20Sopenharmony_ciesac 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciexec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB 24