Ignore:
Timestamp:
2010-12-17T21:34:31+01:00 (5 years ago)
Author:
juhosg
Message:

firmware-utils/mkzynfw: fix available flash space calculation

File:
1 edited

Legend:

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

    r21446 r24653  
    10001000 
    10011001                next_offs = ALIGN(*offset, block->align); 
    1002                 avail = board->flash_size - board->romio_offs - next_offs; 
     1002                avail = board->flash_size - next_offs; 
    10031003                if (block->file_size > avail) { 
    10041004                        ERR("file %s is too big, offset = %u, size=%u," 
    1005                                 " align = %u", block->file_name, 
     1005                                " avail = %u, align = %u", block->file_name, 
    10061006                                (unsigned)next_offs, 
    10071007                                (unsigned)block->file_size, 
     1008                                (unsigned)avail, 
    10081009                                (unsigned)block->align); 
    10091010                        res = -1; 
Note: See TracChangeset for help on using the changeset viewer.