payloads: Add an option to compress secondary payloads
Both GRUB and SeaBIOS can chainload lzma compressed payloads. Therefore it is beneficial to compress secondary payloads like Memtest86+, coreinfo, nvramcui,... for both size reasons and often also speed reasons since the limiting factor is generally the IO of the boot device. Tested with SeaBIOS and memtest86+ master on Thinkpad X220. Change-Id: Iddfd6fcf4112d255cc7b2b49b99bf5ea4d6f8db4 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/23639 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
9be42b5953
commit
47dd96db97
@@ -350,6 +350,11 @@ ifeq ($(CONFIG_COMPRESSED_PAYLOAD_LZ4),y)
|
||||
CBFS_PAYLOAD_COMPRESS_FLAG:=LZ4
|
||||
endif
|
||||
|
||||
CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG:=none
|
||||
ifeq ($(CONFIG_COMPRESS_SECONDARY_PAYLOAD),y)
|
||||
CBFS_SECONDARY_PAYLOAD_COMPRESS_FLAG:=LZMA
|
||||
endif
|
||||
|
||||
CBFS_PRERAM_COMPRESS_FLAG:=none
|
||||
ifeq ($(CONFIG_COMPRESS_PRERAM_STAGES),y)
|
||||
CBFS_PRERAM_COMPRESS_FLAG:=LZ4
|
||||
|
Reference in New Issue
Block a user