From 265ac2d6c7eee92deb434808c72af19b9ff4c9d5 Mon Sep 17 00:00:00 2001 From: Elizabeth Liner Date: Wed, 9 Mar 2016 10:32:37 -0600 Subject: Adding xz decompression functionality for the skiboot image Change-Id: I50d1eaa8bc76a030b42f982e2a967773e113f123 RTC:125550 depends-on: I2a104ec955966a6fcb9ed94dde54ab763c30210a Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21854 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: William G. Hoffa --- src/usr/pnor/pnorrp.C | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/usr/pnor/pnorrp.C') diff --git a/src/usr/pnor/pnorrp.C b/src/usr/pnor/pnorrp.C index b2b67a86d..725fa88e9 100644 --- a/src/usr/pnor/pnorrp.C +++ b/src/usr/pnor/pnorrp.C @@ -441,6 +441,10 @@ errlHndl_t PnorRP::getSectionInfo( PNOR::SectionId i_section, != 0) ? true : false; o_info.readOnly = ((iv_TOC[id].misc & FFS_MISC_READ_ONLY) != 0) ? true : false; + o_info.xzCompressed = ((iv_TOC[id].compress & FFS_COMPRESS_XZ) + != 0) ? true : false; + o_info.xzSize = ((iv_TOC[id].compress & FFS_COMPRESS_XZ) != 0) ? + iv_TOC[id].xzDecompressSize : 0; } return l_errhdl; -- cgit v1.2.1