aboutsummaryrefslogtreecommitdiff
path: root/board/esd/common/cmd_loadpci.c
diff options
context:
space:
mode:
authorWolfgang Denk2009-04-01 23:34:12 +0200
committerWolfgang Denk2009-04-03 22:01:42 +0200
commit74de7aefd79690bae8cf5a5120f5962d444be089 (patch)
tree18d3638b971717b3bafbb31f6b5cbf43f8a41457 /board/esd/common/cmd_loadpci.c
parent78237df55248034a2d7c2daea992b9dbe7ca8e96 (diff)
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 'board/esd/common/cmd_loadpci.c')
-rw-r--r--board/esd/common/cmd_loadpci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/esd/common/cmd_loadpci.c b/board/esd/common/cmd_loadpci.c
index 0a6626e0716..c779f793d8a 100644
--- a/board/esd/common/cmd_loadpci.c
+++ b/board/esd/common/cmd_loadpci.c
@@ -30,7 +30,7 @@
#if defined(CONFIG_CMD_BSP)
extern int do_bootm (cmd_tbl_t *, int, int, char *[]);
-extern int do_autoscript (cmd_tbl_t *, int, int, char *[]);
+extern int do_source (cmd_tbl_t *, int, int, char *[]);
#define ADDRMASK 0xfffff000
@@ -98,12 +98,12 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
case 1:
/*
- * Boot image via autoscr
+ * Boot image via "source" command
*/
printf("executing script at addr 0x%s ...\n", addr);
local_args[0] = addr;
local_args[1] = NULL;
- do_autoscript(cmdtp, 0, 1, local_args);
+ do_source(cmdtp, 0, 1, local_args);
break;
case 2: