Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:SLE-15:Update
u-boot-omap3beagle
0024-image-Load-the-correct-configuratio.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0024-image-Load-the-correct-configuratio.patch of Package u-boot-omap3beagle
From 37a3ba63c9bd297e88d9fefc6cb6996e9a44d2d4 Mon Sep 17 00:00:00 2001 From: Simon Glass <sjg@chromium.org> Date: Wed, 18 Mar 2020 11:44:02 -0600 Subject: [PATCH] image: Load the correct configuration in fit_check_sign At present bootm_host_load_images() is passed the configuration that has been verified, but ignores it and just uses the default configuration. This may not be the same. Update this function to use the selected configuration. Signed-off-by: Simon Glass <sjg@chromium.org> (cherry picked from commit 8a9d03732e6d0f68107c80919096e7cf956dcb3d) Signed-off-by: Matthias Brugger <mbrugger@suse.com> --- common/bootm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/bootm.c b/common/bootm.c index adb12137c7..043ad0e25e 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -900,7 +900,8 @@ 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; @@ -912,6 +913,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, @@ -956,7 +958,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; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor