mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 07:30:26 +09:00
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>
This commit is contained in:
parent
43d28855d8
commit
602ce1d106
@ -259,11 +259,9 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
|||||||
debug("%s ", genimg_get_type_name(type));
|
debug("%s ", genimg_get_type_name(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_SPL_OS_BOOT) && IS_ENABLED(CONFIG_SPL_GZIP)) {
|
if (IS_ENABLED(CONFIG_SPL_GZIP)) {
|
||||||
if (fit_image_get_comp(fit, node, &image_comp))
|
fit_image_get_comp(fit, node, &image_comp);
|
||||||
puts("Cannot get image compression format.\n");
|
debug("%s ", genimg_get_comp_name(image_comp));
|
||||||
else
|
|
||||||
debug("%s ", genimg_get_comp_name(image_comp));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fit_image_get_load(fit, node, &load_addr))
|
if (fit_image_get_load(fit, node, &load_addr))
|
||||||
|
Loading…
Reference in New Issue
Block a user