summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/kwbimage.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index 5f6d91c486..8fe3bf41e9 100644
--- a/tools/kwbimage.c
+++ b/tools/kwbimage.c
@@ -810,7 +810,15 @@ static int kwbimage_generate(struct image_tool_params *params,
tparams->header_size = alloc_len;
tparams->hdr = hdr;
- return 0;
+ /*
+ * The resulting image needs to be 4-byte aligned. At least
+ * the Marvell hdrparser tool complains if its unaligned.
+ * By returning 1 here in this function, called via
+ * tparams->vrec_header() in mkimage.c, mkimage will
+ * automatically pad the the resulting image to a 4-byte
+ * size if necessary.
+ */
+ return 1;
}
/*
OpenPOWER on IntegriCloud