mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
spl: fit: Do not fail immediately if an overlay is not available
If one overlay that must be applied cannot be found in the FIT, the current implementation stops applying the overlays. Let's make it skip only the failing overlay instead. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ea376ebc9b
commit
24bf44cf88
1 changed files with 5 additions and 1 deletions
|
@ -324,9 +324,13 @@ static int spl_fit_append_fdt(struct spl_image_info *spl_image,
|
|||
for (; ; index++) {
|
||||
node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP,
|
||||
index);
|
||||
if (node < 0) {
|
||||
if (node == -E2BIG) {
|
||||
debug("%s: No additional FDT node\n", __func__);
|
||||
break;
|
||||
} else if (node < 0) {
|
||||
debug("%s: unable to find FDT node %d\n",
|
||||
__func__, index);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!tmpbuffer) {
|
||||
|
|
Loading…
Add table
Reference in a new issue