mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 01:11:47 +01:00
Merge "bootm: Load the correct configuration in fit_check_sign"
This commit is contained in:
commit
0d768d743d
1 changed files with 3 additions and 2 deletions
|
|
@ -914,7 +914,7 @@ void memmove_wd(void *to, void *from, size_t len, ulong chunksz)
|
|||
memmove(to, from, len);
|
||||
}
|
||||
|
||||
static int bootm_host_load_image(const void *fit, int req_image_type)
|
||||
static int bootm_host_load_image(const void *fit, int req_image_type, int cfg_noffset)
|
||||
{
|
||||
const char *fit_uname_config = NULL;
|
||||
ulong data, len;
|
||||
|
|
@ -926,6 +926,7 @@ static int bootm_host_load_image(const void *fit, int req_image_type)
|
|||
void *load_buf;
|
||||
int ret;
|
||||
|
||||
fit_uname_config = fdt_get_name(fit, cfg_noffset, NULL);
|
||||
memset(&images, '\0', sizeof(images));
|
||||
images.verify = 1;
|
||||
noffset = fit_image_load(&images, (ulong)fit,
|
||||
|
|
@ -970,7 +971,7 @@ int bootm_host_load_images(const void *fit, int cfg_noffset)
|
|||
for (i = 0; i < ARRAY_SIZE(image_types); i++) {
|
||||
int ret;
|
||||
|
||||
ret = bootm_host_load_image(fit, image_types[i]);
|
||||
ret = bootm_host_load_image(fit, image_types[i], cfg_noffset);
|
||||
if (!err && ret && ret != -ENOENT)
|
||||
err = ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue