
From: Simon Glass <sjg@chromium.org> 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> --- boot/image-fit.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/boot/image-fit.c b/boot/image-fit.c index dfb26ba716b..0c1c07c8498 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -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; -- 2.43.0