summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorAntonello Dettori <dev@dettori.io>2016-07-23 17:11:44 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2018-01-15 01:27:48 +0000
commitfbcfdaf785df87e27dbf556566f8b8a09e3f73ad (patch)
tree6922b26a962f1a1ae99c891dcd6ba1d96fe96430 /payloads
parent1898023fb1e7e410a0a916f0518dc5893fb9f988 (diff)
downloadcoreboot-fbcfdaf785df87e27dbf556566f8b8a09e3f73ad.tar.xz
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>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/Kconfig18
1 files changed, 15 insertions, 3 deletions
diff --git a/payloads/Kconfig b/payloads/Kconfig
index bb9348b7d7..394dbb6afb 100644
--- a/payloads/Kconfig
+++ b/payloads/Kconfig
@@ -49,15 +49,27 @@ config PAYLOAD_FILE
help
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
bool "Use LZMA compression for payloads"
- default y
- depends on !PAYLOAD_NONE && !PAYLOAD_LINUX
help
In order to reduce the size payloads take up in the ROM chip
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
string
default ""