mirror of
https://github.com/CTCaer/switch-l4t-uboot.git
synced 2024-11-27 03:40:31 +00:00
net/tftp: fix build if CMD_BOOTEFI is not set
Fixes: net/tftp.c:811: undefined reference to `efi_set_bootdev' Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
2fa73e784d
commit
64b8d7a677
@ -805,7 +805,9 @@ void tftp_start(enum proto_t protocol)
|
||||
printf("Load address: 0x%lx\n", load_addr);
|
||||
puts("Loading: *\b");
|
||||
tftp_state = STATE_SEND_RRQ;
|
||||
#ifdef CONFIG_CMD_BOOTEFI
|
||||
efi_set_bootdev("Net", "", tftp_filename);
|
||||
#endif
|
||||
}
|
||||
|
||||
time_start = get_timer(0);
|
||||
|
Loading…
Reference in New Issue
Block a user