author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | |
Thu, 1 Apr 2021 18:25:30 +0000 (13:25 -0500) | ||
committer | Tom Rini <trini@konsulko.com> | |
Wed, 14 Apr 2021 20:02:43 +0000 (16:02 -0400) | ||
commit | 47b6f7f8451117546dd12af3eccd58961a9f7f05 | |
tree | 109de0931f718b7b636851fd773011fcd9231cb0 | tree | snapshot (tar.xz tar.gz zip) |
parent | 51d3a8b54f2cd1bd8278d0611db4ff2d17235229 | commit | diff |
image-fit: Accept IH_TYPE_FIRMWARE in fit_image_load() as valid
Consider the following FIT:
images {
whipple {};
};
configurations {
conf-1 {
firmware = "whipple";
};
};
Getting the 'firmware' image with fit_image_load() is not possible, as
it doesn't understand 'firmware =' properties. Although one could pass
IH_TYPE_FIRMWARE for 'image_type', this needs to be converted to a
"firmware" string for FDT lookup -- exactly what this change does.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Consider the following FIT:
images {
whipple {};
};
configurations {
conf-1 {
firmware = "whipple";
};
};
Getting the 'firmware' image with fit_image_load() is not possible, as
it doesn't understand 'firmware =' properties. Although one could pass
IH_TYPE_FIRMWARE for 'image_type', this needs to be converted to a
"firmware" string for FDT lookup -- exactly what this change does.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image-fit.c | diff | blob | history |