diff options
| author | Jörg Krause <[email protected]> | 2017-09-15 22:16:48 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-09-22 07:40:05 -0400 |
| commit | 64b8d7a677ce625c7dd30c040b32b606aea61745 (patch) | |
| tree | 9ad57aaa7212bd6a70cd65111fc93a21bea313eb /net | |
| parent | 2fa73e784da105419b7d9d07d8f9d4a79afe531a (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 <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Diffstat (limited to 'net')
| -rw-r--r-- | net/tftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/tftp.c b/net/tftp.c index a5ed8c5d0a3..6671b1f7ca7 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); |
