diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-06-14 10:16:24 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-07-05 02:06:38 +1000 |
commit | 1cc9a21b0bb36debdf96dbcc4b139d6639373018 (patch) | |
tree | 1facb9ac7c1f75511b0ca90fe05433ba6cffd108 /arch/powerpc/boot/wrapper | |
parent | fbded57c962e7c42c932e1a46c8d801441726662 (diff) | |
download | linux-1cc9a21b0bb36debdf96dbcc4b139d6639373018.tar.gz linux-1cc9a21b0bb36debdf96dbcc4b139d6639373018.tar.bz2 linux-1cc9a21b0bb36debdf96dbcc4b139d6639373018.zip |
powerpc/boot: Add lzma support for uImage
This patch allows to generate lzma compressed uImage
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/wrapper')
-rwxr-xr-x | arch/powerpc/boot/wrapper | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/boot/wrapper b/arch/powerpc/boot/wrapper index 4e9beecf2502..51dc42f5acbc 100755 --- a/arch/powerpc/boot/wrapper +++ b/arch/powerpc/boot/wrapper @@ -137,7 +137,7 @@ while [ "$#" -gt 0 ]; do -Z) shift [ "$#" -gt 0 ] || usage - [ "$1" != "gz" -o "$1" != "xz" -o "$1" != "none" ] || usage + [ "$1" != "gz" -o "$1" != "xz" -o "$1" != "lzma" -o "$1" != "none" ] || usage compression=".$1" uboot_comp=$1 @@ -374,6 +374,9 @@ if [ -z "$cacheit" -o ! -f "$vmz$compression" -o "$vmz$compression" -ot "$kernel .gz) gzip -n -f -9 "$vmz.$$" ;; + .lzma) + xz --format=lzma -f -6 "$vmz.$$" + ;; *) # drop the compression suffix so the stripped vmlinux is used compression= |