[PATCH 2/5] get_fake_image_handle: set nb_data_entries to 1 and update the header size
Jean-Christophe PLAGNIOL-VILLARD
plagnioj at jcrosoft.com
Sat Oct 8 10:29:50 EDT 2011
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
commands/bootm.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/commands/bootm.c b/commands/bootm.c
index f0f64cf..afb9e06 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -181,6 +181,8 @@ static struct image_handle *get_fake_image_handle(struct image_data *data, int n
handle = xzalloc(sizeof(struct image_handle));
header = &handle->header;
handle->data_entries = gen_image_handle_data(iha->data, iha->len);
+ handle->nb_data_entries = 1;
+ header->ih_size = cpu_to_uimage(iha->len);
handle->data = handle->data_entries[0].data;
return handle;
--
1.7.6.3
More information about the barebox
mailing list