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: NKevin Smith <kevin.smith@elecsyscorp.com> Tested-by: NStefan Roese <sr@denx.de>
Showing
想要评论请 注册 或 登录