summaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2018-10-16 07:50:30 +0300
committerStefano Babic <sbabic@denx.de>2018-10-22 14:01:27 +0300
commita2b96ece5be146f4995d737f047e5bbb76079b8f (patch)
treeaf073ae6b90dcac0396ccedcade989453a6984e0 /tools/mkimage.c
parentd0dd73974c613650cb0c3d32a734a954cedc9f8a (diff)
downloadu-boot-a2b96ece5be146f4995d737f047e5bbb76079b8f.tar.xz
tools: add i.MX8/8X image support
i.MX8/8X bootable image type is container type. The bootable image, containers a container set which supports two container. The 1st container is for SECO firmware, the 2nd container needs to include scfw, m4_0/1 image, ACore images per your requirement. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 6abd4d6a8b..38805f0c92 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -523,6 +523,13 @@ int main(int argc, char **argv)
ret = zynqmpbif_copy_image(ifd, &params);
if (ret)
return ret;
+ } else if (params.type == IH_TYPE_IMX8IMAGE) {
+ /* i.MX8/8X has special Image format */
+ int ret;
+
+ ret = imx8image_copy_image(ifd, &params);
+ if (ret)
+ return ret;
} else {
copy_file(ifd, params.datafile, pad_len);
}