summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2025-12-03 17:19:35 +0100
committerTom Rini <[email protected]>2025-12-16 11:39:38 -0600
commit6c7d3ba292c648c9075eb0b82278a844bb1ff953 (patch)
treedfd1279e45cd435e178f52b0c463459ba47ec99c /boot
parent3059eb0c27dd1b4a40a06bda4a47e10246185aca (diff)
boot/fit: print all configuration node compatibles
Fit conf node may have a compatible property[1] which stores the compatible of the first blob in the fdt property of the node. This can be used to automatically select the proper conf node based on the compatible from the running U-Boot (matching the former's compatible with the latter)[2]. This brings the ability to mkimage/dumpimage to print the compatibles of the configuration node(s). U-Boot CLI commands such as iminfo also see this addition to their output. [1] https://fitspec.osfw.foundation/#optional-properties compatible paragraph [2] https://fitspec.osfw.foundation/#select-a-configuration-to-boot Signed-off-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/image-fit.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/boot/image-fit.c b/boot/image-fit.c
index c42b22ab02b..cc7a4bb44dc 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -323,6 +323,17 @@ static void fit_conf_print(const void *fit, int noffset, const char *p)
printf("%s\n", uname);
}
+ for (fdt_index = 0;
+ uname = fdt_stringlist_get(fit, noffset, FIT_COMPAT_PROP,
+ fdt_index, NULL), uname;
+ fdt_index++) {
+ if (fdt_index == 0)
+ printf("%s Compatible: ", p);
+ else
+ printf("%s ", p);
+ printf("%s\n", uname);
+ }
+
uname = fdt_getprop(fit, noffset, FIT_FPGA_PROP, NULL);
if (uname)
printf("%s FPGA: %s\n", p, uname);