summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-29 09:50:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-08 08:55:25 +0100
commitea76b402ece8cbecc85d573bcacf5652dba7f590 (patch)
tree4484c71dd95b535a0cd3aab9c4c5e8203c61c336 /common
parent0c37168bc1e5bdf4238dafde3abdcd4839580426 (diff)
downloadbarebox-ea76b402ece8cbecc85d573bcacf5652dba7f590.tar.gz
barebox-ea76b402ece8cbecc85d573bcacf5652dba7f590.tar.xz
FIT: Do not pre-open images
Only do what fit_open_configuration() suggests: open the configuration, but not the images in it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 12379a67ff..8715689cfb 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -581,27 +581,6 @@ int fit_open_configuration(struct fit_handle *handle, const char *name)
handle->conf_node = conf_node;
- if (fit_has_image(handle, "kernel")) {
- ret = fit_open_image(handle, "kernel", &handle->kernel,
- &handle->kernel_size);
- if (ret)
- return ret;
- }
-
- if (fit_has_image(handle, "ramdisk")) {
- ret = fit_open_image(handle, "ramdisk", &handle->initrd,
- &handle->initrd_size);
- if (ret)
- return ret;
- }
-
- if (fit_has_image(handle, "fdt")) {
- ret = fit_open_image(handle, "fdt", &handle->oftree,
- &handle->oftree_size);
- if (ret)
- return ret;
- }
-
return 0;
}