summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--common/image-fit.c21
-rw-r--r--include/image-fit.h7
2 files changed, 0 insertions, 28 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;
}
diff --git a/include/image-fit.h b/include/image-fit.h
index 62f44dcc8d..0e26a40ef7 100644
--- a/include/image-fit.h
+++ b/include/image-fit.h
@@ -30,13 +30,6 @@ struct fit_handle {
struct device_node *root;
struct device_node *conf_node;
-
- const void *kernel;
- unsigned long kernel_size;
- const void *oftree;
- unsigned long oftree_size;
- const void *initrd;
- unsigned long initrd_size;
};
struct fit_handle *fit_open(const char *filename, bool verbose,