summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2017-09-15 22:16:48 +0200
committerTom Rini <trini@konsulko.com>2017-09-22 07:40:05 -0400
commit64b8d7a677ce625c7dd30c040b32b606aea61745 (patch)
tree9ad57aaa7212bd6a70cd65111fc93a21bea313eb /net
parent2fa73e784da105419b7d9d07d8f9d4a79afe531a (diff)
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>
Diffstat (limited to 'net')
-rw-r--r--net/tftp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tftp.c b/net/tftp.c
index a5ed8c5d0a..6671b1f7ca 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -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);