Skip to content

Commit

Permalink
net/tftp: fix build if CMD_BOOTEFI is not set
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
joerg-krause authored and trini committed Sep 22, 2017
1 parent 2fa73e7 commit 64b8d7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64b8d7a

Please sign in to comment.