projects
/
openwrt
/
staging
/
florian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65dba32
)
firmware-utils/mkzynfw: don't use next_offset twice (closes #7273)
author
Gabor Juhos
<
[email protected]
>
Fri, 14 May 2010 09:20:34 +0000
(09:20 +0000)
committer
Gabor Juhos
<
[email protected]
>
Fri, 14 May 2010 09:20:34 +0000
(09:20 +0000)
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 <
[email protected]
>
SVN-Revision: 21445
tools/firmware-utils/src/mkzynfw.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/mkzynfw.c
b/tools/firmware-utils/src/mkzynfw.c
index 5c1bc243729f2d2c815a9d2948eb54ae2e45bccf..9018ea10845bf9da59830c7b0b7486c54693cfd1 100644
(file)
--- a/
tools/firmware-utils/src/mkzynfw.c
+++ b/
tools/firmware-utils/src/mkzynfw.c
@@
-983,7
+983,7
@@
calc_block_offsets(int type, uint32_t *offset)
next_offs = ALIGN(*offset, block->align);
avail = board->flash_size - board->romio_offs - next_offs;
- if (
next_offs +
block->file_size > avail) {
+ if (block->file_size > avail) {
ERR("file %s is too big, offset = %u, size=%u,"
" align = %u", block->file_name,
(unsigned)next_offs,