summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index aa652c2ee4..b8575f31d1 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -104,9 +104,9 @@ size_t cbfs_load_and_decompress(const struct region_device *rdev, size_t offset,
case CBFS_COMPRESS_LZMA:
if (ENV_BOOTBLOCK || ENV_VERSTAGE)
return 0;
- if (ENV_ROMSTAGE && !IS_ENABLED(CONFIG_COMPRESS_RAMSTAGE))
+ if ((ENV_ROMSTAGE || ENV_POSTCAR)
+ && !IS_ENABLED(CONFIG_COMPRESS_RAMSTAGE))
return 0;
-
void *map = rdev_mmap(rdev, offset, in_size);
if (map == NULL)
return 0;