boot: Show compatible strings with FIT information

The compatible strings used by each configuration comprise useful
information about how the system will boot. Show these after the current
configuration-node information.

Swap the order of the desc argument in its caller, fit_image_print()
since it is easier to read.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-02 06:51:46 +12:00
parent 08676cf417
commit 40fd6b04b9

View File

@@ -348,6 +348,16 @@ static void fit_conf_print(const void *fit, int noffset, const char *p)
printf("%s\n", uname);
}
/* Show the list of compatible strings */
for (i = 0; uname = fdt_stringlist_get(fit, noffset,
FIT_COMPATIBLE_PROP, i, NULL), uname; i++) {
if (!i)
printf("%s Compatible: ", p);
else
printf("%s ", p);
printf("%s\n", uname);
}
/* Process all hash subnodes of the component configuration node */
for (ndepth = 0, noffset = fdt_next_node(fit, noffset, &ndepth);
(noffset >= 0) && (ndepth > 0);
@@ -480,8 +490,8 @@ void fit_print_contents(const void *fit)
*/
void fit_image_print(const void *fit, int image_noffset, const char *p)
{
const char *desc;
uint8_t type, arch, os, comp = IH_COMP_NONE;
const char *desc;
size_t size;
ulong load, entry;
const void *data;