[PATCH 04/13] boot: Move type and OS checking into a new function

Tom Rini trini at konsulko.com
Wed Apr 8 18:26:02 CEST 2026


On Wed, Mar 25, 2026 at 10:54:13AM -0600, Simon Glass wrote:

> Move the code which checks whether the image can be loaded into a
> separate check_allowed() function.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>

Switching to an enum is useful for various build time reasons (and
wasn't called out), refactoring code that's not heavily nested is the
same issue as in patch #1 of the series.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260408/021c4bb5/attachment.sig>


More information about the U-Boot mailing list