[openwrt/openwrt] kernel-defaults: Manage the enabling/disabling of ZSTD

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 9 17:50:56 EST 2021


florian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0f8fd1d0bf01d28b8185639540435c3d2de92868

commit 0f8fd1d0bf01d28b8185639540435c3d2de92868
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Sat Sep 12 19:48:34 2020 -0700

    kernel-defaults: Manage the enabling/disabling of ZSTD
    
    Linux 5.9 introduces support for ZSTD ramdisk and initrd compression,
    make sure we enable/disable the relevant options when building an
    initramfs enabled kernel.
    
    Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
---
 include/kernel-defaults.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 6be4cff1f2..5b376dc9da 100644
--- a/include/kernel-defaults.mk
+++ b/include/kernel-defaults.mk
@@ -78,6 +78,7 @@ ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
 	echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZO),CONFIG_INITRAMFS_COMPRESSION_LZO=y\nCONFIG_RD_LZO=y,# CONFIG_INITRAMFS_COMPRESSION_LZO is not set\n# CONFIG_RD_LZO is not set)" >> $(LINUX_DIR)/.config
 	echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_XZ),CONFIG_INITRAMFS_COMPRESSION_XZ=y\nCONFIG_RD_XZ=y,# CONFIG_INITRAMFS_COMPRESSION_XZ is not set\n# CONFIG_RD_XZ is not set)" >> $(LINUX_DIR)/.config
 	echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_LZ4),CONFIG_INITRAMFS_COMPRESSION_LZ4=y\nCONFIG_RD_LZ4=y,# CONFIG_INITRAMFS_COMPRESSION_LZ4 is not set\n# CONFIG_RD_LZ4 is not set)" >> $(LINUX_DIR)/.config
+	echo -e "$(if $(CONFIG_TARGET_INITRAMFS_COMPRESSION_ZSTD),CONFIG_INITRAMFS_COMPRESSION_ZSTD=y\nCONFIG_RD_STD=y,# CONFIG_INITRAMFS_COMPRESSION_ZSTD is not set\n# CONFIG_RD_ZSTD is not set)" >> $(LINUX_DIR)/.config
   endef
 else
 endif



More information about the lede-commits mailing list