Skip to content

Commit cdf5664

Browse files
heicarstMartin Schwidefsky
authored andcommitted
[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>
1 parent cf9daf4 commit cdf5664

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎arch/s390/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ config S390
102102
select HAVE_KERNEL_GZIP
103103
select HAVE_KERNEL_BZIP2
104104
select HAVE_KERNEL_LZMA
105+
select HAVE_KERNEL_LZO
105106
select ARCH_INLINE_SPIN_TRYLOCK
106107
select ARCH_INLINE_SPIN_TRYLOCK_BH
107108
select ARCH_INLINE_SPIN_LOCK

‎arch/s390/boot/compressed/Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
BITS := $(if $(CONFIG_64BIT),64,31)
88

99
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
10+
vmlinux.bin.lzma vmlinux.bin.lzo misc.o piggy.o sizes.h head$(BITS).o
1111

1212
KBUILD_CFLAGS := -m$(BITS) -D__KERNEL__ $(LINUX_INCLUDE) -O2
1313
KBUILD_CFLAGS += $(cflags-y)
@@ -47,13 +47,16 @@ vmlinux.bin.all-y := $(obj)/vmlinux.bin
4747
suffix-$(CONFIG_KERNEL_GZIP) := gz
4848
suffix-$(CONFIG_KERNEL_BZIP2) := bz2
4949
suffix-$(CONFIG_KERNEL_LZMA) := lzma
50+
suffix-$(CONFIG_KERNEL_LZO) := lzo
5051

5152
$(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y)
5253
$(call if_changed,gzip)
5354
$(obj)/vmlinux.bin.bz2: $(vmlinux.bin.all-y)
5455
$(call if_changed,bzip2)
5556
$(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y)
5657
$(call if_changed,lzma)
58+
$(obj)/vmlinux.bin.lzo: $(vmlinux.bin.all-y)
59+
$(call if_changed,lzo)
5760

5861
LDFLAGS_piggy.o := -r --format binary --oformat $(LD_BFD) -T
5962
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y)

‎arch/s390/boot/compressed/misc.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ static unsigned long free_mem_end_ptr;
5050
#include "../../../../lib/decompress_unlzma.c"
5151
#endif
5252

53+
#ifdef CONFIG_KERNEL_LZO
54+
#include "../../../../lib/decompress_unlzo.c"
55+
#endif
56+
5357
extern _sclp_print_early(const char *);
5458

5559
int puts(const char *s)

0 commit comments

Comments
 (0)