X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fcmd_source.c;h=16a627a3dd5def7796ade9d30e5638d52fb27046;hb=590d3cacb98cb377b127869b58507d2afe9c904a;hp=43e131592933346b0a36f53c014583b2ea526862;hpb=ca41ef301b21b3ac25af71750624e0b3d5ddbb3e;p=u-boot diff --git a/common/cmd_source.c b/common/cmd_source.c index 43e1315929..16a627a3dd 100644 --- a/common/cmd_source.c +++ b/common/cmd_source.c @@ -199,7 +199,7 @@ source (ulong addr, const char *fit_uname) /**************************************************/ #if defined(CONFIG_CMD_SOURCE) int -do_source (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +do_source (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { ulong addr; int rcode; @@ -229,28 +229,11 @@ U_BOOT_CMD( "run script from memory", "[addr]\n" "\t- run script starting at addr\n" - "\t- A valid image header must be present\n" + "\t- A valid image header must be present" #if defined(CONFIG_FIT) + "\n" "For FIT format uImage addr must include subimage\n" - "unit name in the form of addr:\n" + "unit name in the form of addr:" #endif ); - -/* - * Keep for now for backward compatibility; - * remove later when support for "autoscr" goes away. - */ -static int -do_autoscr (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) -{ - printf ("\n### WARNING ### " - "\"autoscr\" is deprecated, use \"source\" instead ###\n\n"); - return do_source (cmdtp, flag, argc, argv); -} - -U_BOOT_CMD( - autoscr, 2, 0, do_autoscr, - "DEPRECATED - use \"source\" command instead", - "DEPRECATED - use \"source\" command instead\n" -); #endif