[U-Boot] [PATCH PATCH v4 05/15] spl: fit: Do not fail immediately if an overlay is not available
Jean-Jacques Hiblot
jjhiblot at ti.com
Mon Aug 5 09:44:00 UTC 2019
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 at ti.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
Changes in v4: None
Changes in v3: None
Changes in v2: None
common/spl/spl_fit.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 977074cd99..c4aa09a6b7 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -318,9 +318,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;
}
image_info.load_addr = (ulong)tmpbuffer;
--
2.17.1
More information about the U-Boot
mailing list