diff options
-rw-r--r-- | src/lib/cbfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c index 87ab3877f8..9938e6abbe 100644 --- a/src/lib/cbfs.c +++ b/src/lib/cbfs.c @@ -119,8 +119,11 @@ size_t cbfs_load_and_decompress(const struct region_device *rdev, size_t offset, return out_size; case CBFS_COMPRESS_LZMA: + /* We assume here romstage and postcar are never compressed. */ if (ENV_BOOTBLOCK || ENV_VERSTAGE) return 0; + if (ENV_ROMSTAGE && IS_ENABLED(CONFIG_POSTCAR_STAGE)) + return 0; if ((ENV_ROMSTAGE || ENV_POSTCAR) && !IS_ENABLED(CONFIG_COMPRESS_RAMSTAGE)) return 0; |