mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
tools: image-host: add support for several sub-images
The propoerty sign-images points to images in the configuration node. But thoses images may references severals "sub-images" (for example for images loadable). This commit adds the support of severals sub-images. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
This commit is contained in:
parent
5a4116f1a2
commit
edfeba7538
1 changed files with 22 additions and 16 deletions
|
@ -805,9 +805,14 @@ static int fit_config_get_hash_list(void *fit, int conf_noffset,
|
||||||
image_count = 0;
|
image_count = 0;
|
||||||
for (iname = prop; iname < end; iname += strlen(iname) + 1) {
|
for (iname = prop; iname < end; iname += strlen(iname) + 1) {
|
||||||
int image_noffset;
|
int image_noffset;
|
||||||
|
int index, max_index;
|
||||||
|
|
||||||
|
max_index = fdt_stringlist_count(fit, conf_noffset, iname);
|
||||||
|
|
||||||
|
for (index = 0; index < max_index; index++) {
|
||||||
|
image_noffset = fit_conf_get_prop_node_index(fit, conf_noffset,
|
||||||
|
iname, index);
|
||||||
|
|
||||||
image_noffset = fit_conf_get_prop_node(fit, conf_noffset,
|
|
||||||
iname);
|
|
||||||
if (image_noffset < 0) {
|
if (image_noffset < 0) {
|
||||||
printf("Failed to find image '%s' in configuration '%s/%s'\n",
|
printf("Failed to find image '%s' in configuration '%s/%s'\n",
|
||||||
iname, conf_name, sig_name);
|
iname, conf_name, sig_name);
|
||||||
|
@ -825,6 +830,7 @@ static int fit_config_get_hash_list(void *fit, int conf_noffset,
|
||||||
|
|
||||||
image_count++;
|
image_count++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!image_count) {
|
if (!image_count) {
|
||||||
printf("Failed to find any images for configuration '%s/%s'\n",
|
printf("Failed to find any images for configuration '%s/%s'\n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue