lib: Don't require ULZMA compression for postcar
The build fails during postcar when ULZMA compression is not selected. Fix cbfs.c to support LZ compression for ramstage as well. The build error is: build/postcar/lib/cbfs.o: In function `cbfs_load_and_decompress': /home/lee/coreboot/public/src/lib/cbfs.c:116: undefined reference to `ulzman' make: *** [build/cbfs/fallback/postcar.debug] Error 1 TEST=Build and run on Galileo Gen2 Change-Id: I7fa8ff33c0d32e0c5ff5de7918e13e6efb1df38e Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15841 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
27cd96a661
commit
d950f5191d
|
@ -104,9 +104,9 @@ size_t cbfs_load_and_decompress(const struct region_device *rdev, size_t offset,
|
||||||
case CBFS_COMPRESS_LZMA:
|
case CBFS_COMPRESS_LZMA:
|
||||||
if (ENV_BOOTBLOCK || ENV_VERSTAGE)
|
if (ENV_BOOTBLOCK || ENV_VERSTAGE)
|
||||||
return 0;
|
return 0;
|
||||||
if (ENV_ROMSTAGE && !IS_ENABLED(CONFIG_COMPRESS_RAMSTAGE))
|
if ((ENV_ROMSTAGE || ENV_POSTCAR)
|
||||||
|
&& !IS_ENABLED(CONFIG_COMPRESS_RAMSTAGE))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
void *map = rdev_mmap(rdev, offset, in_size);
|
void *map = rdev_mmap(rdev, offset, in_size);
|
||||||
if (map == NULL)
|
if (map == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue