mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 23:39:41 +02:00
[tools] firmware-utils/mkcsysimg: minor bugfix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16556 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f6eb698b63
commit
8a2403d370
@ -577,7 +577,7 @@ block_writeout_hdr(FILE *outfile, struct csys_block *block)
|
|||||||
/* setup header fields */
|
/* setup header fields */
|
||||||
memcpy(hdr.sig, block->sig, 4);
|
memcpy(hdr.sig, block->sig, 4);
|
||||||
hdr.addr = HOST_TO_LE32(block->addr);
|
hdr.addr = HOST_TO_LE32(block->addr);
|
||||||
hdr.size = HOST_TO_LE32(block->align-block->size_hdr);
|
hdr.size = HOST_TO_LE32(block->size - block->size_hdr - block->size_csum);
|
||||||
|
|
||||||
DBG(1,"writing header for block");
|
DBG(1,"writing header for block");
|
||||||
res = write_out_data(outfile, (uint8_t *)&hdr, sizeof(hdr),NULL);
|
res = write_out_data(outfile, (uint8_t *)&hdr, sizeof(hdr),NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user