[new uImage] Add new uImage format support to autoscript routine

autoscript() routine is updated to accept second argument, which
is only used for FIT images and provides a FIT subimage unit name.

autoscript() routine callers must now pass two arguments. For
non-interactive use (like in cmd_load.c, cmd_net.c), new environment
variable 'autoscript_uname' is introduced and used as a FIT
subimage unit name source.

autoscript command accepts extended syntax of the addr argument:
addr:<subimg_uname>

Signed-off-by: Marian Balakowicz <m8@semihalf.com>
This commit is contained in:
Marian Balakowicz
2008-03-12 10:33:00 +01:00
parent cd7c596e9f
commit 424c4abdd1
5 changed files with 97 additions and 22 deletions

View File

@@ -222,7 +222,7 @@ int mac_read_from_eeprom(void);
void flash_perror (int);
/* common/cmd_autoscript.c */
int autoscript (ulong addr);
int autoscript (ulong addr, const char *fit_uname);
extern ulong load_addr; /* Default Load Address */