public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
* [cbootimage PATH V2 RESEND 1/3] Rename last_bl_blk to last_blk
@ 2014-07-15  5:59 Vince Hsu
       [not found] ` <1405403997-29477-1-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Vince Hsu @ 2014-07-15  5:59 UTC (permalink / raw)
  To: AMartin-DDmLM1+adcrQT0dZR+AlfA, swarren-3lzwWm7+Weoh9ZMKESR00Q,
	TWarren-DDmLM1+adcrQT0dZR+AlfA, vinceh-DDmLM1+adcrQT0dZR+AlfA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

Also update the next_bct_blk. Then we have the correct pointer
to the next block for the next image write.

Signed-off-by: Vince Hsu <vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 src/cbootimage.h  | 2 +-
 src/data_layout.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/cbootimage.h b/src/cbootimage.h
index 6def766f1770..baade00f5e33 100644
--- a/src/cbootimage.h
+++ b/src/cbootimage.h
@@ -95,7 +95,7 @@ typedef struct build_image_context_rec
 	u_int8_t *bct;
 
 	char *bct_filename;
-	u_int32_t last_bl_blk;
+	u_int32_t last_blk;
 	u_int32_t bct_size; /* The BCT file size */
 	u_int32_t boot_data_version; /* The boot data version of BCT */
 	u_int8_t bct_init; /* The flag for the memory allocation of bct */
diff --git a/src/data_layout.c b/src/data_layout.c
index c848a6141b2b..73663beffbe2 100644
--- a/src/data_layout.c
+++ b/src/data_layout.c
@@ -552,8 +552,9 @@ write_bootloaders(build_image_context *context)
 				current_blk++;
 				virtual_blk++;
 			}
-			context->last_bl_blk = current_blk;
+			context->last_blk = current_blk;
 		}
+		context->next_bct_blk = context->last_blk + 1;
 		free(buffer);
 	}
 
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-16  1:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15  5:59 [cbootimage PATH V2 RESEND 1/3] Rename last_bl_blk to last_blk Vince Hsu
     [not found] ` <1405403997-29477-1-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-07-15  5:59   ` [cbootimage PATH V2 RESEND 2/3] Add Tegra132 support for the cbootimage utility Vince Hsu
     [not found]     ` <1405403997-29477-2-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-07-15 23:40       ` Allen Martin
     [not found]         ` <20140715234024.GB31327-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-07-16  1:53           ` Vince Hsu
2014-07-15  5:59   ` [cbootimage PATH V2 RESEND 3/3] Dump MTS information by bct_dump utility Vince Hsu
     [not found]     ` <1405403997-29477-3-git-send-email-vinceh-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-07-15 23:42       ` Allen Martin
2014-07-15 23:12   ` [cbootimage PATH V2 RESEND 1/3] Rename last_bl_blk to last_blk Allen Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox