]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/cray/L1/L1.c
[new uImage] Add dual format uImage support framework
[karo-tx-uboot.git] / board / cray / L1 / L1.c
index 8e6d74eef5ae1e2ef1f9a24d3ff5f582f75e38d1..c00acc87aeaacd661b47a7dcf19f454175017aab 100644 (file)
@@ -140,6 +140,13 @@ int misc_init_r (void)
        char bootcmd[32];
 
        hdr = (image_header_t *) (CFG_MONITOR_BASE - image_get_header_size ());
+#if defined(CONFIG_FIT)
+       if (gen_image_get_format ((void *)hdr) != IMAGE_FORMAT_LEGACY) {
+               puts ("Non legacy image format not supported\n");
+               return -1;
+       }
+#endif
+
        timestamp = (time_t)image_get_time (hdr);
        to_tm (timestamp, &tm);
        printf ("Welcome to U-Boot on Cray L1. Compiled %4d-%02d-%02d  %2d:%02d:%02d (UTC)\n", tm.tm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);