]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/tftp.c
net/tftp: fix build if CMD_BOOTEFI is not set
[people/ms/u-boot.git] / net / tftp.c
index a5ed8c5d0a3507b5f8dc270aae53194db4c0deb7..6671b1f7ca726acf44b6f18f41f9f017c10fd1ec 100644 (file)
@@ -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);