24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 1) #!/bin/sh
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 2) #
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 3) # This is a wrapper for xz to compress the kernel image using appropriate
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 4) # compression options depending on the architecture.
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 5) #
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 6) # Author: Lasse Collin <lasse.collin@tukaani.org>
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 7) #
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 8) # This file has been put into the public domain.
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 9) # You can do whatever you want with this file.
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 10) #
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 11)
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 12) BCJ=
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 13) LZMA2OPTS=
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 14)
0db7bd8ca0033 (Lasse Collin 2012-04-18 19:55:44 +0300 15) case $SRCARCH in
0db7bd8ca0033 (Lasse Collin 2012-04-18 19:55:44 +0300 16) x86) BCJ=--x86 ;;
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 17) powerpc) BCJ=--powerpc ;;
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 18) ia64) BCJ=--ia64; LZMA2OPTS=pb=4 ;;
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 19) arm) BCJ=--arm ;;
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 20) sparc) BCJ=--sparc ;;
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 21) esac
24fa0402a9b6a (Lasse Collin 2011-01-12 17:01:22 -0800 22)
8dfb61dcbaceb (Denis Efremov 2020-06-05 10:39:55 +0300 23) exec $XZ --check=crc32 $BCJ --lzma2=$LZMA2OPTS,dict=32MiB