]> Git Repo - u-boot.git/blobdiff - cmd/ximg.c
doc: Bring in FIT x86 boot
[u-boot.git] / cmd / ximg.c
index 63b200430c31b60b3539ab806e4084c859ce3fb9..60ed2c9f6f9ec2139c49fbcc5aaa5a5501ce6d0c 100644 (file)
@@ -27,9 +27,9 @@
 #include <asm/cache.h>
 #include <asm/io.h>
 
-#ifndef CONFIG_SYS_XIMG_LEN
+#ifndef CFG_SYS_XIMG_LEN
 /* use 8MByte as default max gunzip size */
-#define CONFIG_SYS_XIMG_LEN    0x800000
+#define CFG_SYS_XIMG_LEN       0x800000
 #endif
 
 static int
@@ -42,7 +42,7 @@ do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
        int             part = 0;
 #if defined(CONFIG_LEGACY_IMAGE_FORMAT)
        ulong           count;
-       image_header_t  *hdr = NULL;
+       struct legacy_img_hdr   *hdr = NULL;
 #endif
 #if defined(CONFIG_FIT)
        const char      *uname = NULL;
@@ -52,7 +52,7 @@ do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
        size_t          fit_len;
 #endif
 #ifdef CONFIG_GZIP
-       uint            unc_len = CONFIG_SYS_XIMG_LEN;
+       uint            unc_len = CFG_SYS_XIMG_LEN;
 #endif
        uint8_t         comp;
 
@@ -78,7 +78,7 @@ do_imgextract(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
                printf("## Copying part %d from legacy image "
                        "at %08lx ...\n", part, addr);
 
-               hdr = (image_header_t *)addr;
+               hdr = (struct legacy_img_hdr *)addr;
                if (!image_check_magic(hdr)) {
                        printf("Bad Magic Number\n");
                        return 1;
This page took 0.02818 seconds and 4 git commands to generate.