mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
bootstage: Plumb in bootstage calls for basic operations
This inserts bootstage calls into tftp, usb start and bootm. We could go further, but this is a reasonable start to illustrate the concept. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
3a608ca01d
commit
573f14fe4e
@@ -43,7 +43,12 @@ U_BOOT_CMD(
|
||||
|
||||
int do_tftpb (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
return netboot_common(TFTPGET, cmdtp, argc, argv);
|
||||
int ret;
|
||||
|
||||
bootstage_mark_name(BOOTSTAGE_KERNELREAD_START, "tftp_start");
|
||||
ret = netboot_common(TFTPGET, cmdtp, argc, argv);
|
||||
bootstage_mark_name(BOOTSTAGE_KERNELREAD_STOP, "tftp_done");
|
||||
return ret;
|
||||
}
|
||||
|
||||
U_BOOT_CMD(
|
||||
|
Reference in New Issue
Block a user