On 08/13/2017 02:35 PM, Simon Glass wrote: > Hi York, > > On 7 August 2017 at 17:16, York Sun <york....@nxp.com> wrote: >> Add Kconfig option SPL_GZIP and SPL_ZLIB to enable gunzip support for >> SPL boot, eg. falcon boot compressed kernel image. >> >> Signed-off-by: York Sun <york....@nxp.com> >> >> --- >> >> Changes in v2: >> Combine Kconfig change and actual code into one patch >> >> common/spl/spl_fit.c | 28 ++++++++++++++++++++++++++-- >> lib/Kconfig | 8 ++++++++ >> lib/Makefile | 5 +++-- >> 3 files changed, 37 insertions(+), 4 deletions(-) >> >> diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c >> index d2a352e..23f85d2 100644 >> --- a/common/spl/spl_fit.c >> +++ b/common/spl/spl_fit.c >> @@ -135,6 +135,19 @@ static int spl_load_fit_image(struct spl_load_info >> *info, ulong sector, >> ulong overhead; >> int nr_sectors; >> int align_len = ARCH_DMA_MINALIGN - 1; >> +#if defined(CONFIG_SPL_OS_BOOT) && defined(CONFIG_SPL_GZIP) > > If these are in Kconfig can we use if (IS_ENABLED()) instead of #if ?
Sure thing. Will change in next version. York _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot