image: Allow loading a FIT image for a particular phase
authorSimon Glass <sjg@chromium.org>
Fri, 21 Oct 2022 00:23:04 +0000 (18:23 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2022 15:02:45 +0000 (11:02 -0400)
commitbbe285c305e26d2944c38ea17c44c605b3289e25
tree120c08d0bcd646f0991c3c52826216e270a07794
parent44ad35a0f699b0b49ef6efaa1405b6f99c703ea8
image: Allow loading a FIT image for a particular phase

Add support for filtering out FIT images by phase. Rather than adding yet
another argument to this already overloaded function, use a composite
value, where the phase is only added in if needed.

The FIT config is still selected (and verified) as normal, but the images
are selected based on the phase.

Tests for this come in a little later, as part of the updated VPL test.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/image-fit.c
doc/uImage.FIT/howto.txt
include/image.h