mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
spl: fit: Print error message when FDT is not present
When FDT is not present in the image user doesn't get any error what's wrong. Print error message if LIBCOMMON_SUPPORT is enabled. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Seris-cc: uboot Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@ -39,8 +39,13 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp)
|
|||||||
node >= 0;
|
node >= 0;
|
||||||
node = fdt_next_subnode(fdt, node)) {
|
node = fdt_next_subnode(fdt, node)) {
|
||||||
name = fdt_getprop(fdt, node, "description", &len);
|
name = fdt_getprop(fdt, node, "description", &len);
|
||||||
if (!name)
|
if (!name) {
|
||||||
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
|
||||||
|
printf("%s: Missing FDT description in DTB\n",
|
||||||
|
__func__);
|
||||||
|
#endif
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
}
|
||||||
if (board_fit_config_name_match(name))
|
if (board_fit_config_name_match(name))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user