xref: /kernel/linux/linux-6.6/scripts/xz_wrap.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/scripts/
162306a36Sopenharmony_ci#!/bin/sh
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# This is a wrapper for xz to compress the kernel image using appropriate
462306a36Sopenharmony_ci# compression options depending on the architecture.
562306a36Sopenharmony_ci#
662306a36Sopenharmony_ci# Author: Lasse Collin <lasse.collin@tukaani.org>
762306a36Sopenharmony_ci#
862306a36Sopenharmony_ci# This file has been put into the public domain.
962306a36Sopenharmony_ci# You can do whatever you want with this file.
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciBCJ=
1362306a36Sopenharmony_ciLZMA2OPTS=
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cicase $SRCARCH in
1662306a36Sopenharmony_ci	x86)            BCJ=--x86 ;;
1762306a36Sopenharmony_ci	powerpc)        BCJ=--powerpc ;;
1862306a36Sopenharmony_ci	ia64)           BCJ=--ia64; LZMA2OPTS=pb=4 ;;
1962306a36Sopenharmony_ci	arm)            BCJ=--arm ;;
2062306a36Sopenharmony_ci	sparc)          BCJ=--sparc ;;
2162306a36Sopenharmony_ciesac
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciexec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB
24

Indexes created Thu Nov 07 10:32:03 CST 2024