tools: add i.MX8M image support
[oweals/u-boot.git] / tools / mkimage.c
index 38805f0c9263773419eefa51207f94b6f8c1b88d..ea5ed542ab9c120776be927c8b66601562a55758 100644 (file)
@@ -530,6 +530,13 @@ int main(int argc, char **argv)
                        ret = imx8image_copy_image(ifd, &params);
                        if (ret)
                                return ret;
+               } else if (params.type == IH_TYPE_IMX8MIMAGE) {
+                       /* i.MX8M has special Image format */
+                       int ret;
+
+                       ret = imx8mimage_copy_image(ifd, &params);
+                       if (ret)
+                               return ret;
                } else {
                        copy_file(ifd, params.datafile, pad_len);
                }