Skip to content

Commit

Permalink
tools: kwbimage: don't adjust for image_header for Armada MSYS
Browse files Browse the repository at this point in the history
For the time being the Armada MSYS SoCs need to use the bin_hdr from the
Marvell U-Boot. Because of this the binary.0 does not contain the image
header that a proper u-boot SPL would so the adjustment introduced by
commit 94084ee ("tools: kwbimage: Fix dest addr") does not apply.

Signed-off-by: Chris Packham <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
  • Loading branch information
cpackham authored and stroese committed Apr 12, 2019
1 parent 7ceefcb commit 8cbafd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/kwbimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,13 @@ static void *image_create_v1(size_t *imagesz, struct image_tool_params *params,
e = image_find_option(IMAGE_CFG_DEBUG);
if (e)
main_hdr->flags = e->debug ? 0x1 : 0;
e = image_find_option(IMAGE_CFG_BINARY);
if (e) {
char *s = strrchr(e->binary.file, '/');

if (strcmp(s, "/binary.0") == 0)
main_hdr->destaddr = cpu_to_le32(params->addr);
}

#if defined(CONFIG_KWB_SECURE)
if (image_get_csk_index() >= 0) {
Expand Down

0 comments on commit 8cbafd1

Please sign in to comment.