x86: copy kernel patches from 4.19 to 5.4
[openwrt/staging/chunkeey.git] / target / linux / x86 / patches-5.4 / 011-tune_lzma_options.patch
1 --- a/scripts/Makefile.lib
2 +++ b/scripts/Makefile.lib
3 @@ -325,7 +325,7 @@ cmd_bzip2 = (cat $(filter-out FORCE,$^)
4
5 quiet_cmd_lzma = LZMA $@
6 cmd_lzma = (cat $(filter-out FORCE,$^) | \
7 - lzma e -d20 -lc1 -lp2 -pb2 -eos -si -so && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
8 + lzma e -lc8 -eos -si -so && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
9 (rm -f $@ ; false)
10
11 quiet_cmd_lzo = LZO $@
12 --- a/arch/x86/include/asm/boot.h
13 +++ b/arch/x86/include/asm/boot.h
14 @@ -24,7 +24,7 @@
15 # error "Invalid value for CONFIG_PHYSICAL_ALIGN"
16 #endif
17
18 -#ifdef CONFIG_KERNEL_BZIP2
19 +#if defined(CONFIG_KERNEL_BZIP2) || defined(CONFIG_KERNEL_LZMA)
20 # define BOOT_HEAP_SIZE 0x400000
21 #else /* !CONFIG_KERNEL_BZIP2 */
22 # define BOOT_HEAP_SIZE 0x10000