]> Git Repo - J-u-boot.git/blobdiff - cmd/ximg.c
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-sh into next
[J-u-boot.git] / cmd / ximg.c
index dccd1143a7a5bc5c3dc46ad13bc3a7a13c27f278..ef738ebfa2f34424ac57e65f4d9ff8e41afe31e1 100644 (file)
 #include <env.h>
 #include <gzip.h>
 #include <image.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <watchdog.h>
 #if defined(CONFIG_BZIP2)
 #include <bzlib.h>
 #endif
 #include <asm/byteorder.h>
+#include <asm/cache.h>
 #include <asm/io.h>
 
 #ifndef CONFIG_SYS_XIMG_LEN
@@ -31,7 +33,7 @@
 #endif
 
 static int
-do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
+do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        ulong           addr = image_load_addr;
        ulong           dest = 0;
@@ -134,7 +136,7 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
                        "at %08lx ...\n", uname, addr);
 
                fit_hdr = (const void *)addr;
-               if (!fit_check_format(fit_hdr)) {
+               if (fit_check_format(fit_hdr, IMAGE_SIZE_INVAL)) {
                        puts("Bad FIT image format\n");
                        return 1;
                }
This page took 0.033301 seconds and 4 git commands to generate.