Attention is currently required from: Andrey Petrov.
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69894 )
Change subject: drivers/intel/fsp2_0: Add option to compress FSP with ZSTD ......................................................................
drivers/intel/fsp2_0: Add option to compress FSP with ZSTD
Currently no platform uses this.
Change-Id: Ia13f027205b2f4eea5574dfea455eefa854cfe66 Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/drivers/intel/fsp2_0/Kconfig M src/drivers/intel/fsp2_0/Makefile.inc 2 files changed, 25 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/69894/1
diff --git a/src/drivers/intel/fsp2_0/Kconfig b/src/drivers/intel/fsp2_0/Kconfig index 8c36063..59f7348 100644 --- a/src/drivers/intel/fsp2_0/Kconfig +++ b/src/drivers/intel/fsp2_0/Kconfig @@ -217,6 +217,9 @@ config FSP_COMPRESS_FSP_S_LZMA bool
+config FSP_COMPRESS_FSP_S_ZSTD + bool + config FSP_COMPRESS_FSP_S_LZ4 bool
@@ -224,6 +227,10 @@ bool depends on !FSP_M_XIP
+config FSP_COMPRESS_FSP_M_ZSTD + bool + depends on !FSP_M_XIP + config FSP_COMPRESS_FSP_M_LZ4 bool depends on !FSP_M_XIP diff --git a/src/drivers/intel/fsp2_0/Makefile.inc b/src/drivers/intel/fsp2_0/Makefile.inc index f5641ac..64f3db4 100644 --- a/src/drivers/intel/fsp2_0/Makefile.inc +++ b/src/drivers/intel/fsp2_0/Makefile.inc @@ -64,8 +64,9 @@ endif ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZMA),y) $(FSP_M_CBFS)-compression := LZMA -endif -ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZ4),y) +else ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_ZSTD),y) +$(FSP_M_CBFS)-compression := ZSTD +else ifeq ($(CONFIG_FSP_COMPRESS_FSP_M_LZ4),y) $(FSP_M_CBFS)-compression := LZ4 endif ifneq ($(CONFIG_FSP_ALIGNMENT_FSP_M),) @@ -77,8 +78,9 @@ $(FSP_S_CBFS)-type := fsp ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZMA),y) $(FSP_S_CBFS)-compression := LZMA -endif -ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZ4),y) +else ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_ZSTD),y) +$(FSP_S_CBFS)-compression := ZSTD +else ifeq ($(CONFIG_FSP_COMPRESS_FSP_S_LZ4),y) $(FSP_S_CBFS)-compression := LZ4 endif ifneq ($(CONFIG_FSP_ALIGNMENT_FSP_S),)