]> git.sur5r.net Git - u-boot/blobdiff - tools/mkimage.c
tools: zynqmpimage: Add bif support
[u-boot] / tools / mkimage.c
index 64ad131860b08c7b2d5d2e772c1e55095967be46..e0d4d20be499cd1e869466e9594269034251fba9 100644 (file)
@@ -515,6 +515,13 @@ int main(int argc, char **argv)
                } else if (params.type == IH_TYPE_PBLIMAGE) {
                        /* PBL has special Image format, implements its' own */
                        pbl_load_uboot(ifd, &params);
+               } else if (params.type == IH_TYPE_ZYNQMPBIF) {
+                       /* Image file is meta, walk through actual targets */
+                       int ret;
+
+                       ret = zynqmpbif_copy_image(ifd, &params);
+                       if (ret)
+                               return ret;
                } else {
                        copy_file(ifd, params.datafile, pad_len);
                }