diff options
Diffstat (limited to 'utils/imxtools/sbtools/sb.c')
-rw-r--r-- | utils/imxtools/sbtools/sb.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/imxtools/sbtools/sb.c b/utils/imxtools/sbtools/sb.c index 05f9836b46..df3622940f 100644 --- a/utils/imxtools/sbtools/sb.c +++ b/utils/imxtools/sbtools/sb.c | |||
@@ -122,6 +122,13 @@ static void compute_sb_offsets(struct sb_file_t *sb) | |||
122 | sb->image_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE; | 122 | sb->image_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE; |
123 | sec->sec_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE; | 123 | sec->sec_size += ROUND_UP(inst->size, BLOCK_SIZE) / BLOCK_SIZE; |
124 | } | 124 | } |
125 | else if(inst->inst == SB_INST_NOP) | ||
126 | { | ||
127 | if(g_debug) | ||
128 | printf(" NOOP\n"); | ||
129 | sb->image_size += sizeof(struct sb_instruction_nop_t) / BLOCK_SIZE; | ||
130 | sec->sec_size += sizeof(struct sb_instruction_nop_t) / BLOCK_SIZE; | ||
131 | } | ||
125 | else | 132 | else |
126 | { | 133 | { |
127 | if(g_debug) | 134 | if(g_debug) |
@@ -445,7 +452,7 @@ enum sb_error_t sb_write_file(struct sb_file_t *sb, const char *filename) | |||
445 | if(buf_p - buf != sb_hdr.image_size * BLOCK_SIZE) | 452 | if(buf_p - buf != sb_hdr.image_size * BLOCK_SIZE) |
446 | { | 453 | { |
447 | if(g_debug) | 454 | if(g_debug) |
448 | printf("SB image buffer was not entirely filled !"); | 455 | printf("SB image buffer was not entirely filled !\n"); |
449 | return SB_ERROR; | 456 | return SB_ERROR; |
450 | } | 457 | } |
451 | 458 | ||