diff options
-rw-r--r-- | scripts/imx/imx-image.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index f5e89d07a6..6cbee1d9bd 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -984,8 +984,11 @@ int main(int argc, char *argv[]) xwrite(outfd, buf, header_len); } - if (add_barebox_header) + if (add_barebox_header) { pwrite(outfd, bb_header, sizeof_bb_header, 0); + if (data.cpu_type == IMX_CPU_IMX35) + pwrite(outfd, bb_header, sizeof_bb_header, header_len); + } xwrite(outfd, infile, insize); |