File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ config S390
118118 select HAVE_FUNCTION_TRACE_MCOUNT_TEST
119119 select HAVE_KERNEL_BZIP2
120120 select HAVE_KERNEL_GZIP
121+ select HAVE_KERNEL_LZ4
121122 select HAVE_KERNEL_LZMA
122123 select HAVE_KERNEL_LZO
123124 select HAVE_KERNEL_XZ
Original file line number Diff line number Diff line change 66
77BITS := $(if $(CONFIG_64BIT ) ,64,31)
88
9- targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \
10- vmlinux.bin.xz vmlinux.bin.lzma vmlinux.bin.lzo misc.o piggy.o \
11- sizes.h head$(BITS ) .o
9+ targets := vmlinux.lds vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2
10+ targets += vmlinux.bin.xz vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.lz4
11+ targets += misc.o piggy.o sizes.h head$(BITS ) .o
1212
1313KBUILD_CFLAGS := -m$(BITS ) -D__KERNEL__ $(LINUX_INCLUDE ) -O2
1414KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
@@ -48,6 +48,7 @@ vmlinux.bin.all-y := $(obj)/vmlinux.bin
4848
4949suffix-$(CONFIG_KERNEL_GZIP) := gz
5050suffix-$(CONFIG_KERNEL_BZIP2) := bz2
51+ suffix-$(CONFIG_KERNEL_LZ4) := lz4
5152suffix-$(CONFIG_KERNEL_LZMA) := lzma
5253suffix-$(CONFIG_KERNEL_LZO) := lzo
5354suffix-$(CONFIG_KERNEL_XZ) := xz
@@ -56,6 +57,8 @@ $(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y)
5657 $(call if_changed,gzip)
5758$(obj ) /vmlinux.bin.bz2 : $(vmlinux.bin.all-y )
5859 $(call if_changed,bzip2)
60+ $(obj ) /vmlinux.bin.lz4 : $(vmlinux.bin.all-y )
61+ $(call if_changed,lz4)
5962$(obj ) /vmlinux.bin.lzma : $(vmlinux.bin.all-y )
6063 $(call if_changed,lzma)
6164$(obj ) /vmlinux.bin.lzo : $(vmlinux.bin.all-y )
Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ static unsigned long free_mem_end_ptr;
4747#include "../../../../lib/decompress_bunzip2.c"
4848#endif
4949
50+ #ifdef CONFIG_KERNEL_LZ4
51+ #include "../../../../lib/decompress_unlz4.c"
52+ #endif
53+
5054#ifdef CONFIG_KERNEL_LZMA
5155#include "../../../../lib/decompress_unlzma.c"
5256#endif
You can’t perform that action at this time.
0 commit comments