summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMartin Roth <martin.roth@amd.com>2023-01-04 18:47:32 -0700
committerMartin L Roth <gaumless@gmail.com>2023-01-08 01:21:46 +0000
commit03511b4770f92af0da56497e1055cd0d6a6575d2 (patch)
treee9ad60c603565cf0948df5825bd1bd6077a182ae /src/lib
parent40729a58eaef5a349f2cae642020bb8e2caabdec (diff)
src/lib: Include LZMA in romstage for FSP-M
Previously, LZMA was included in romstage because it was almost always needed to decompress ramstage. When compressing ramstage with LZ4, but using LZMA compression for FSP-M, we still need the LZMA decompression to be present, so update when the Makefile includes the LZMA decoder. Signed-off-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Change-Id: Id52d25a13420f05db8b2b563de0448f9d44638e0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71674 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Makefile.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index 030959c9c6..c83004a866 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -95,7 +95,9 @@ $(foreach arch,$(ARCH_SUPPORTED),\
romstage-y += fmap.c
romstage-y += delay.c
romstage-y += cbfs.c
-romstage-$(CONFIG_COMPRESS_RAMSTAGE_LZMA) += lzma.c lzmadecode.c
+ifneq ($(CONFIG_COMPRESS_RAMSTAGE_LZMA)$(CONFIG_FSP_COMPRESS_FSP_M_LZMA),)
+romstage-y += lzma.c lzmadecode.c
+endif
romstage-y += libgcc.c
romstage-y += memrange.c
romstage-$(CONFIG_PRIMITIVE_MEMTEST) += primitive_memtest.c