]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_autoscript.c
[new uImage] Update naming convention for bootm/uImage related code
[karo-tx-uboot.git] / common / cmd_autoscript.c
index f9ab1d9a13b15e7956d4acb518932ed17242a26c..60ffc7dbce84d3c974ab3ef44ca2997d056eee6d 100644 (file)
@@ -61,7 +61,7 @@ autoscript (ulong addr)
 
        verify = getenv_verify ();
 
-       switch (gen_image_get_format ((void *)addr)) {
+       switch (genimg_get_format ((void *)addr)) {
        case IMAGE_FORMAT_LEGACY:
                hdr = (image_header_t *)addr;
 
@@ -90,7 +90,7 @@ autoscript (ulong addr)
                /* get length of script */
                data = (ulong *)image_get_data (hdr);
 
-               if ((len = image_to_cpu (*data)) == 0) {
+               if ((len = uimage_to_cpu (*data)) == 0) {
                        puts ("Empty Script\n");
                        return 1;
                }