diff options
| author | Wolfgang Denk <wd@denx.de> | 2009-04-01 23:34:12 +0200 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2009-04-03 22:01:42 +0200 | 
| commit | 74de7aefd79690bae8cf5a5120f5962d444be089 (patch) | |
| tree | 18d3638b971717b3bafbb31f6b5cbf43f8a41457 /common/cmd_load.c | |
| parent | 78237df55248034a2d7c2daea992b9dbe7ca8e96 (diff) | |
| download | olio-uboot-2014.01-74de7aefd79690bae8cf5a5120f5962d444be089.tar.xz olio-uboot-2014.01-74de7aefd79690bae8cf5a5120f5962d444be089.zip | |
Add "source" command; prepare removal of "autoscr" command
According to the doc/feature-removal-schedule.txt, the "autoscr"
command will be replaced by the "source" command in approximately 6
months from now.
This patch prepares this change and starts a 6 month transition
period as follows:
- The new "source" command has been added, which implements exactly
  the same functionlaity as the old "autoscr" command before
- The old "autoscr" command name is kept as an alias for compatibility
- Command sequences, script files atc. have been adapted to use the
  new "source" command
- Related environment variables ("autoscript", "autoscript_uname")
  have *not* been adapted yet; these will be renamed resp. removed in
  a separate patch when the support for the "autoscr" command get's
  finally dropped.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'common/cmd_load.c')
| -rw-r--r-- | common/cmd_load.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/common/cmd_load.c b/common/cmd_load.c index 88fba8899..d5eaac735 100644 --- a/common/cmd_load.c +++ b/common/cmd_load.c @@ -513,12 +513,13 @@ int do_load_serial_bin (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  		}  	} -#ifdef CONFIG_AUTOSCRIPT +#ifdef CONFIG_SOURCE  	if (load_addr) {  		char *s;  		if (((s = getenv("autoscript")) != NULL) && (strcmp(s,"yes") == 0)) { -			printf ("Running autoscript at addr 0x%08lX", load_addr); +			printf ("Running "source" command at addr 0x%08lX", +				load_addr);  			s = getenv ("autoscript_uname");  			if (s) @@ -526,7 +527,7 @@ int do_load_serial_bin (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  			else  				puts (" ...\n"); -			rcode = autoscript (load_addr, s); +			rcode = source (load_addr, s);  		}  	}  #endif |