aports/main/linux-lts/vmlinux-zstd.patch
Natanael Copa c2b1c3f92d main/linux-lts: upgrade to 5.15.1, fix zstd compression
Use slightly less agressive zstd compression leve for kernel so we don't
run out of memory on 32 bit x86.

Fixes zstd kernel compression error 11 on x86

https://forums.gentoo.org/viewtopic-p-8641020.html#8641020
2021-11-07 17:45:33 +00:00

19 lines
663 B
Diff

Compress vmlinux with zstd -19 instead of -22
This gives slightly bigger kernel but on 32bit x86 solves:
zstd kernel compression error 11
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index 431bf7f..decc2de 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -133,7 +133,7 @@ $(obj)/vmlinux.bin.lzo: $(vmlinux.bin.all-y) FORCE
$(obj)/vmlinux.bin.lz4: $(vmlinux.bin.all-y) FORCE
$(call if_changed,lz4)
$(obj)/vmlinux.bin.zst: $(vmlinux.bin.all-y) FORCE
- $(call if_changed,zstd22)
+ $(call if_changed,zstd)
suffix-$(CONFIG_KERNEL_GZIP) := gz
suffix-$(CONFIG_KERNEL_BZIP2) := bz2