From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 16 Apr 2021 08:26:36 -0400 Subject: [PATCH v3 6/6] image-fit: Accept OP-TEE images when booting a FIT In-Reply-To: <20210401182531.2147653-7-mr.nuke.me@gmail.com> References: <20210401182531.2147653-1-mr.nuke.me@gmail.com> <20210401182531.2147653-7-mr.nuke.me@gmail.com> Message-ID: <20210416122636.GH1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Apr 01, 2021 at 01:25:31PM -0500, Alexandru Gagniuc wrote: > 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 > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: