diff options
author | Aristo Chen <jj251510319013@gmail.com> | 2025-06-10 07:41:18 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-06-26 08:12:54 -0600 |
commit | 7a8b25a771f069819eab6134fd1c4df520ebc9ca (patch) | |
tree | 371ed35d6845ce99fb1007a3dda0bbdb4ffae815 /arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | |
parent | 21705d39144a51a50c0206c74588c6e9e4018e7a (diff) |
tools: mkimage: validate image references in FIT configurations
When parsing a FIT image source (ITS), mkimage does not currently check
whether the image names referenced in the /configurations section (e.g.
"kernel", "fdt", "ramdisk", "loadables") actually exist in the /images
node.
This patch introduces a validation step during FIT import that iterates
over each configuration and verifies that all referenced image names are
defined under /images. If a missing image is detected, an appropriate
error is reported and mkimage exits with FDT_ERR_NOTFOUND.
This ensures that configuration integrity is validated at build time.
Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c')
0 files changed, 0 insertions, 0 deletions