Skip to content
Snippets Groups Projects
Commit 64b8d7a6 authored by Jörg Krause's avatar Jörg Krause Committed by Tom Rini
Browse files

net/tftp: fix build if CMD_BOOTEFI is not set


Fixes:
net/tftp.c:811: undefined reference to `efi_set_bootdev'

Signed-off-by: default avatarJörg Krause <joerg.krause@embedded.rocks>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 2fa73e78
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment