diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-07-24 15:05:00 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-09-26 10:15:00 +0200 |
commit | 975e78932359230986bb0d2c9a0694285c163621 (patch) | |
tree | 1dcaebdbfc9f54517f09303849d203eaa91ab8b6 | |
parent | fbf7fb0f9fe84e7bb24d184d0783944411400f08 (diff) | |
download | u-boot-975e78932359230986bb0d2c9a0694285c163621.tar.gz u-boot-975e78932359230986bb0d2c9a0694285c163621.tar.bz2 u-boot-975e78932359230986bb0d2c9a0694285c163621.zip |
spl: fit: Enable GZIP compression also for no kernel partitions
There is no reason to limit gzip usage only for OS_BOOT and kernel image
type.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: York Sun <york.sun@nxp.com>
-rw-r--r-- | common/spl/spl_fit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 9eabb1c105..dbf5ac33a8 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -257,10 +257,7 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector, board_fit_image_post_process(&src, &length); #endif - if (IS_ENABLED(CONFIG_SPL_OS_BOOT) && - IS_ENABLED(CONFIG_SPL_GZIP) && - image_comp == IH_COMP_GZIP && - type == IH_TYPE_KERNEL) { + if (IS_ENABLED(CONFIG_SPL_GZIP) && image_comp == IH_COMP_GZIP) { size = length; if (gunzip((void *)load_addr, CONFIG_SYS_BOOTM_LEN, src, &size)) { |