payloads: add support lz4 compression
Add the option to use the lz4 compression method to compress payloads. Also sets LZ4 as the default compression method. Change-Id: Ic712f984f791d268440c8463eaea0d246aa31d99 Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/15817 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
1898023fb1
commit
fbcfdaf785
|
@ -345,6 +345,9 @@ CBFS_PAYLOAD_COMPRESS_FLAG:=none
|
||||||
ifeq ($(CONFIG_COMPRESSED_PAYLOAD_LZMA),y)
|
ifeq ($(CONFIG_COMPRESSED_PAYLOAD_LZMA),y)
|
||||||
CBFS_PAYLOAD_COMPRESS_FLAG:=LZMA
|
CBFS_PAYLOAD_COMPRESS_FLAG:=LZMA
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CONFIG_COMPRESSED_PAYLOAD_LZ4),y)
|
||||||
|
CBFS_PAYLOAD_COMPRESS_FLAG:=LZ4
|
||||||
|
endif
|
||||||
|
|
||||||
CBFS_PRERAM_COMPRESS_FLAG:=none
|
CBFS_PRERAM_COMPRESS_FLAG:=none
|
||||||
ifeq ($(CONFIG_COMPRESS_PRERAM_STAGES),y)
|
ifeq ($(CONFIG_COMPRESS_PRERAM_STAGES),y)
|
||||||
|
|
|
@ -49,15 +49,27 @@ config PAYLOAD_FILE
|
||||||
help
|
help
|
||||||
The path and filename of the ELF executable file to use as payload.
|
The path and filename of the ELF executable file to use as payload.
|
||||||
|
|
||||||
# TODO: Defined if no payload? Breaks build?
|
choice
|
||||||
|
prompt "Payload compression algorithm"
|
||||||
|
default COMPRESSED_PAYLOAD_LZ4
|
||||||
|
depends on !PAYLOAD_NONE && !PAYLOAD_LINUX
|
||||||
|
help
|
||||||
|
Choose the compression algorithm for the chosen payloads.
|
||||||
|
You can choose between LZMA and LZ4.
|
||||||
|
|
||||||
config COMPRESSED_PAYLOAD_LZMA
|
config COMPRESSED_PAYLOAD_LZMA
|
||||||
bool "Use LZMA compression for payloads"
|
bool "Use LZMA compression for payloads"
|
||||||
default y
|
|
||||||
depends on !PAYLOAD_NONE && !PAYLOAD_LINUX
|
|
||||||
help
|
help
|
||||||
In order to reduce the size payloads take up in the ROM chip
|
In order to reduce the size payloads take up in the ROM chip
|
||||||
coreboot can compress them using the LZMA algorithm.
|
coreboot can compress them using the LZMA algorithm.
|
||||||
|
|
||||||
|
config COMPRESSED_PAYLOAD_LZ4
|
||||||
|
bool "Use LZ4 compression for payloads"
|
||||||
|
help
|
||||||
|
In order to reduce the size payloads take up in the ROM chip
|
||||||
|
coreboot can compress them using the LZ4 algorithm.
|
||||||
|
endchoice
|
||||||
|
|
||||||
config PAYLOAD_OPTIONS
|
config PAYLOAD_OPTIONS
|
||||||
string
|
string
|
||||||
default ""
|
default ""
|
||||||
|
|
Loading…
Reference in New Issue