Changeset 21445


Ignore:
Timestamp:
2010-05-14T11:20:34+02:00 (8 years ago)
Author:
juhosg
Message:

firmware-utils/mkzynfw: don't use next_offset twice (closes #7273)

The test if a file can fit in an image considers the current offset
twice. So a image that would fit is too big.

Thanks-to: Michael Kurz <michi.kurz@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/mkzynfw.c

    r15245 r21445  
    984984                next_offs = ALIGN(*offset, block->align); 
    985985                avail = board->flash_size - board->romio_offs - next_offs; 
    986                 if (next_offs + block->file_size > avail) { 
     986                if (block->file_size > avail) { 
    987987                        ERR("file %s is too big, offset = %u, size=%u," 
    988988                                " align = %u", block->file_name, 
Note: See TracChangeset for help on using the changeset viewer.