]> git.ipfire.org Git - people/ms/u-boot.git/commit
tools/kwbimage.c: Correct header size for SPI boot
authorKevin Smith <kevin.smith@elecsyscorp.com>
Mon, 16 Mar 2015 14:58:21 +0000 (14:58 +0000)
committerLuka Perkov <luka.perkov@sartura.hr>
Sun, 14 Jun 2015 15:48:28 +0000 (17:48 +0200)
commita0aad12346b2cc848b8d592067ca74cb6a1721f8
treecc0fb889335f80d70da3ac60ece7abf9e3824d00
parent64d16706a052553c85d2f8f4c741879a4e3e6116
tools/kwbimage.c: Correct header size for SPI boot

If defined, the macro CONFIG_SYS_SPI_U_BOOT_OFFS allows a board
to specify the offset of the payload image into the kwb image
file.  This value was being used to locate the image, but was not
used in the "header size" field of the main header.  Move the
use of this macro into the function that returns the header size
so that the same value is used in all places.

Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Tested-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c