tools/kwbimage.c: Fix generation of binary header
authorStefan Roese <sr@denx.de>
Wed, 28 Oct 2015 06:53:58 +0000 (07:53 +0100)
committerLuka Perkov <luka.perkov@sartura.hr>
Tue, 17 Nov 2015 22:41:41 +0000 (23:41 +0100)
commitea8b6877a84c6e219bc3c7fe3ef08f7124cf4305
treec3d8618cb0c5741bbd292d17b0ed232015b7d621
parent490753ace38c436f05b02a827bfe9b0ace44990a
tools/kwbimage.c: Fix generation of binary header

The binary header ends with one lword, defining if another header
follows this one. This additions 4 bytes need to be taken into
account in the generation of the header size. And the complete
4 bytes at the end of this binary header need to get cleared.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Kevin Smith <kevin.smith@elecsyscorp.com>
tools/kwbimage.c