diff options
| author | Simon Glass <sjg@chromium.org> | 2024-12-07 10:23:56 -0700 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2024-12-12 16:35:23 -0600 |
| commit | 94ad46e2ae4e2566a8cbd4b8030a6efbcb6b17ba (patch) | |
| tree | 5e78ae6d0cbb60d72ca56efcd966c837b55d4221 /include/image.h | |
| parent | 3344767d320b8881b6fa9a8ce5e1d9b7c852c9f1 (diff) | |
boot: Allow FIT to fall back from best-match option
When the best-match feature fails to find something, use the provided
config name as a fallback. The allows SPL to select a suitable config
when best-match is enabled.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
| -rw-r--r-- | include/image.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h index bb15ef69871..ab96510f62c 100644 --- a/include/image.h +++ b/include/image.h @@ -1411,7 +1411,9 @@ int fit_check_format(const void *fit, ulong size); * copied into the configuration node in the FIT image. This is required to * match configurations with compressed FDTs. * - * Returns: offset to the configuration to use if one was found, -1 otherwise + * Returns: offset to the configuration to use if one was found, -EINVAL if + * there a /configurations or /images node is missing, -ENOENT if no match was + * found, -ENXIO if the FDT node has no compatible string */ int fit_conf_find_compat(const void *fit, const void *fdt); |
