summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKlaus H. Sorensen <khso@prevas.dk>2019-12-11 11:03:33 +0000
committerTom Rini <trini@konsulko.com>2020-01-22 17:47:57 -0500
commit602ce1d10695d37f9a72b9cd23500b87050db588 (patch)
treea8bea4ad48c7e2844b534892c8eddbf7e68d4b7c /common
parent43d28855d8ed7929856e376524eb41a74731aed1 (diff)
downloadu-boot-602ce1d10695d37f9a72b9cd23500b87050db588.tar.gz
spl_fit.c: enable loading compressed u-boot from fit image
Allow reading compressed content from fit image, even if CONFIG_SPL_OS_BOOT is not set. This allow booting compressed 2nd stage u-boot from fit image. Additionally, do not print warning message if compression node is not found, since it simply implies the content is uncompressed. Signed-off-by: Klaus H. Sorensen <khso@prevas.dk> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_fit.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index ac69d8312e..aef1dbdd49 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -259,11 +259,9 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
debug("%s ", genimg_get_type_name(type));
}
- if (IS_ENABLED(CONFIG_SPL_OS_BOOT) && IS_ENABLED(CONFIG_SPL_GZIP)) {
- if (fit_image_get_comp(fit, node, &image_comp))
- puts("Cannot get image compression format.\n");
- else
- debug("%s ", genimg_get_comp_name(image_comp));
+ if (IS_ENABLED(CONFIG_SPL_GZIP)) {
+ fit_image_get_comp(fit, node, &image_comp);
+ debug("%s ", genimg_get_comp_name(image_comp));
}
if (fit_image_get_load(fit, node, &load_addr))