[U-Boot] [PATCH v2] 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 --- v2: * remove ifdef for efi header file (suggested by Bin Weng) --- net/tftp.c | 2 ++ 1 file changed, 2 insertions(+)
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);

On Sat, Sep 16, 2017 at 4:16 AM, Jörg Krause joerg.krause@embedded.rocks wrote:
Fixes: net/tftp.c:811: undefined reference to `efi_set_bootdev'
Signed-off-by: Jörg Krause joerg.krause@embedded.rocks
v2:
- remove ifdef for efi header file (suggested by Bin Weng)
net/tftp.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com

On Fri, Sep 15, 2017 at 10:16:48PM +0200, Jörg Krause wrote:
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
Applied to u-boot/master, thanks!
participants (3)
-
Bin Meng
-
Jörg Krause
-
Tom Rini