From 7ffd37dcb40c82c18d11e6ea4e121893f4e37e98 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Thu, 22 Jun 2023 18:04:47 -0700 Subject: drivers/intel/gma/Kconfig: Add VBT compression configuration entry Introduce Kconfig choice to pick between lzma, lz4 and no compression at all of the VBT binary. If VBT is needed in romstage, it can be used to set VBT lz4 compression as an alternative to enabling lzma compression support. Indeed, the extra lzma code needed to de-compress VBT undermines the compression size reduction between lzma and lz4. BUG=b:279173035 TEST=Verified that vbt.bin is lz4 compressed with VBT_CBFS_COMPRESSION_LZ4 and not compressed at all with VBT_CBFS_COMPRESSION_NONE Change-Id: I1df6a96c2ec122f0ef8ee6a1e96ffbd621b14941 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/76816 Tested-by: build bot (Jenkins) Reviewed-by: Shelley Chen Reviewed-by: Subrata Banik Reviewed-by: Eric Lai --- src/drivers/intel/gma/Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/intel/gma/Makefile.inc') diff --git a/src/drivers/intel/gma/Makefile.inc b/src/drivers/intel/gma/Makefile.inc index 82535f63f1..269ef5aeb0 100644 --- a/src/drivers/intel/gma/Makefile.inc +++ b/src/drivers/intel/gma/Makefile.inc @@ -15,7 +15,7 @@ add_vbt_to_cbfs= \ $(eval cbfs-files-y += $1) \ $(eval $1-file := $2) \ $(eval $1-type := raw) \ - $(eval $1-compression := lzma) + $(eval $1-compression := $(call strip_quotes,$(CONFIG_VBT_CBFS_COMPRESSION_ALGORITHM))) endif $(call add_vbt_to_cbfs, vbt.bin, $(call strip_quotes,$(CONFIG_INTEL_GMA_VBT_FILE))) -- cgit v1.2.3