Alexandru Gagniuc 033ac4ebba image-fit: Accept OP-TEE images when booting a FIT
OP-TEE images are normally packaged with
	type = "tee;
	os = "tee";

However, fit_image_load() thinks that is somehow invalid. However if
they were declared as type = "kernel", os = "linux", fit_image_load()
would happily accept them and allow the boot to continue. There is no
technical limitation to excluding "tee".

Allowing "tee" images is useful in a boot flow where OP-TEE is
executed before linux.

In fact, I think it's unintuitive for a "load"ing function to also do
parsing and contain a bunch ad-hoc heuristics that only its caller
might know. But I don't make the rules, I just write fixes. In more
polite terms: refactoring the fit_image API is beyond the scope of
this change.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-04-14 16:02:43 -04:00
..
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2021-04-06 16:33:19 +12:00
2021-03-12 17:41:35 -05:00
2021-03-12 17:41:35 -05:00
2021-04-12 17:44:55 -04:00
2021-04-12 17:44:55 -04:00
2021-01-06 07:57:33 -05:00
2020-10-22 09:54:53 -04:00