diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-09-12 19:48:34 -0700 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2021-01-09 14:49:48 -0800 |
commit | 0f8fd1d0bf01d28b8185639540435c3d2de92868 (patch) | |
tree | 0b55db045f33719642e49bf2c5676719060b3281 | |
parent | 09760cbb3b9d79472c1c6803a32128b7fbb161c4 (diff) | |
download | upstream-0f8fd1d0bf01d28b8185639540435c3d2de92868.tar.gz upstream-0f8fd1d0bf01d28b8185639540435c3d2de92868.tar.bz2 upstream-0f8fd1d0bf01d28b8185639540435c3d2de92868.zip |
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@gmail.com>
-rw-r--r-- | include/kernel-defaults.mk | 1 |
1 files changed, 1 insertions, 0 deletions
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 |