diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-10-08 16:29:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-10-09 11:35:42 +0200 |
commit | 774f88c79bee296b57d32590c6f905501b475abd (patch) | |
tree | 26ef8fff4ff3b99ff607b1fd3e4bae1697439b8f /commands/bootm.c | |
parent | 176c244d4520082921cb956ca41cfeabe449d10c (diff) | |
download | barebox-774f88c79bee296b57d32590c6f905501b475abd.tar.gz barebox-774f88c79bee296b57d32590c6f905501b475abd.tar.xz |
get_fake_image_handle: set nb_data_entries to 1 and update the header size
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r-- | commands/bootm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/bootm.c b/commands/bootm.c index f0f64cfa8e..afb9e067bb 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; |