From f4605de83a14c6f89a47509b71fd5f92fdb7d3c6 Mon Sep 17 00:00:00 2001 From: kszaq Date: Thu, 2 May 2019 21:18:00 +0200 Subject: [PATCH] Generic: don't use initramfs compression Kernel image is already compressed with bzip2, there is no point in having compressed initramfs inside a compressed image. Initramfs compression is discouraged: https://github.com/torvalds/linux/blob/v5.0/usr/Kconfig#L137-L143 --- projects/Generic/linux/linux.x86_64.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/Generic/linux/linux.x86_64.conf b/projects/Generic/linux/linux.x86_64.conf index 1103460cc3..477a829856 100644 --- a/projects/Generic/linux/linux.x86_64.conf +++ b/projects/Generic/linux/linux.x86_64.conf @@ -156,13 +156,13 @@ CONFIG_NET_NS=y CONFIG_RELAY=y CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="" -CONFIG_RD_GZIP=y +# CONFIG_RD_GZIP is not set # CONFIG_RD_BZIP2 is not set # CONFIG_RD_LZMA is not set # CONFIG_RD_XZ is not set # CONFIG_RD_LZO is not set # CONFIG_RD_LZ4 is not set -CONFIG_INITRAMFS_COMPRESSION=".gz" +CONFIG_INITRAMFS_COMPRESSION="" CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_SYSCTL=y