]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:42:49 +0000 (00:42 +0200)
commit742c3b26cc8108cbc7c71bd7c20696f66783f6d7
treedd6bf4d731659b2661edca928a7e02a5fc3d8332
parent89f1054d88e12b374f0327436e80b635ba797818
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