commit | c811ef9d0069c87872795f0129451e9d87834a73 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Jan 26 11:43:17 2025 -0700 |
committer | Tom Rini <trini@konsulko.com> | Mon Feb 03 16:01:36 2025 -0600 |
tree | 2fb4b52a9724f54fa997b97ea15734eb5f11fc02 | |
parent | 15d2f663ca48d3adf028ea294df3c7da9a0dba97 [diff] |
spl: Support selecting images based on phase in simple FIT At present the simple FIT-loader always loads images, ignoring whether they are intended for the next phase or not. VBE packages up several images in the same FIT, some destined for VPL and some for SPL. Add logic to check the phase before loading the image. Return -EPERM in that case and handle it gracefully. Fix a unnecessary re-computation of read_offset while here. Signed-off-by: Simon Glass <sjg@chromium.org>