[S390] Add support for LZO-compressed kernels.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by Heiko Carstens and committed by Martin Schwidefsky cdf56649 cf9daf4a

+9 -1
+1
arch/s390/Kconfig
··· 102 select HAVE_KERNEL_GZIP 103 select HAVE_KERNEL_BZIP2 104 select HAVE_KERNEL_LZMA 105 select ARCH_INLINE_SPIN_TRYLOCK 106 select ARCH_INLINE_SPIN_TRYLOCK_BH 107 select ARCH_INLINE_SPIN_LOCK
··· 102 select HAVE_KERNEL_GZIP 103 select HAVE_KERNEL_BZIP2 104 select HAVE_KERNEL_LZMA 105 + select HAVE_KERNEL_LZO 106 select ARCH_INLINE_SPIN_TRYLOCK 107 select ARCH_INLINE_SPIN_TRYLOCK_BH 108 select ARCH_INLINE_SPIN_LOCK
+4 -1
arch/s390/boot/compressed/Makefile
··· 7 BITS := $(if $(CONFIG_64BIT),64,31) 8 9 targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \ 10 - vmlinux.bin.lzma misc.o piggy.o sizes.h head$(BITS).o 11 12 KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 13 KBUILD_CFLAGS += $(cflags-y) ··· 47 suffix-$(CONFIG_KERNEL_GZIP) := gz 48 suffix-$(CONFIG_KERNEL_BZIP2) := bz2 49 suffix-$(CONFIG_KERNEL_LZMA) := lzma 50 51 $(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y) 52 $(call if_changed,gzip) ··· 55 $(call if_changed,bzip2) 56 $(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y) 57 $(call if_changed,lzma) 58 59 LDFLAGS_piggy.o := -r --format binary --oformat $(LD_BFD) -T 60 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y)
··· 7 BITS := $(if $(CONFIG_64BIT),64,31) 8 9 targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \ 10 + vmlinux.bin.lzma vmlinux.bin.lzo misc.o piggy.o sizes.h head$(BITS).o 11 12 KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2 13 KBUILD_CFLAGS += $(cflags-y) ··· 47 suffix-$(CONFIG_KERNEL_GZIP) := gz 48 suffix-$(CONFIG_KERNEL_BZIP2) := bz2 49 suffix-$(CONFIG_KERNEL_LZMA) := lzma 50 + suffix-$(CONFIG_KERNEL_LZO) := lzo 51 52 $(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y) 53 $(call if_changed,gzip) ··· 54 $(call if_changed,bzip2) 55 $(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y) 56 $(call if_changed,lzma) 57 + $(obj)/vmlinux.bin.lzo: $(vmlinux.bin.all-y) 58 + $(call if_changed,lzo) 59 60 LDFLAGS_piggy.o := -r --format binary --oformat $(LD_BFD) -T 61 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y)
+4
arch/s390/boot/compressed/misc.c
··· 50 #include "../../../../lib/decompress_unlzma.c" 51 #endif 52 53 extern _sclp_print_early(const char *); 54 55 int puts(const char *s)
··· 50 #include "../../../../lib/decompress_unlzma.c" 51 #endif 52 53 + #ifdef CONFIG_KERNEL_LZO 54 + #include "../../../../lib/decompress_unlzo.c" 55 + #endif 56 + 57 extern _sclp_print_early(const char *); 58 59 int puts(const char *s)