summaryrefslogtreecommitdiff
path: root/src/lib/cbfs.c
diff options
context:
space:
mode:
authorAndrew Wu <arw@dmp.com.tw>2013-08-19 11:43:36 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2013-08-19 21:05:44 +0200
commiteabfd3a7c162d5eb96f65085ad8b05238e53a437 (patch)
tree50054dbfec530c137467db52170e6e7f88370fd6 /src/lib/cbfs.c
parent4159a8012eb7e0f492457b789999bbc56efc4713 (diff)
Don't include LZMA in romstage if ramstage is not compressed.
If ramstage is not compressed, the CBFS module in romstage doesn't need to support LZMA. Removing the LZMA module in this case can save about 3000 bytes in romstage. Change-Id: Id6f7869e32979080e2985c07029edcb39eee9106 Signed-off-by: Andrew Wu <arw@dmp.com.tw> Reviewed-on: http://review.coreboot.org/3878 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/lib/cbfs.c')
-rw-r--r--src/lib/cbfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index f48d887d87..4ccc9e6c30 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -29,6 +29,8 @@
# define CBFS_MINI_BUILD
#elif defined(__BOOT_BLOCK__)
/* No LZMA in boot block. */
+#elif defined(__PRE_RAM__) && !CONFIG_COMPRESS_RAMSTAGE
+ /* No LZMA in romstage if ramstage is not compressed. */
#else
# define CBFS_CORE_WITH_LZMA
# include <lib.h>