Message ID | 20170915065832.11534-1-joerg.krause@embedded.rocks |
---|---|
State | Changes Requested |
Delegated to: | Bin Meng |
Headers | show |
Series | [U-Boot] net/tftp: fix build if CMD_BOOTEFI is not set | expand |
On Fri, Sep 15, 2017 at 2:58 PM, 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> > --- > net/tftp.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/net/tftp.c b/net/tftp.c > index a5ed8c5d0a..4a9a5a5d05 100644 > --- a/net/tftp.c > +++ b/net/tftp.c > @@ -8,7 +8,9 @@ > > #include <common.h> > #include <command.h> > +#ifdef CONFIG_CMD_BOOTEFI > #include <efi_loader.h> > +#endif No need to change this. > #include <mapmem.h> > #include <net.h> > #include <net/tftp.h> > @@ -805,7 +807,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); > -- Regards, Bin
diff --git a/net/tftp.c b/net/tftp.c index a5ed8c5d0a..4a9a5a5d05 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -8,7 +8,9 @@ #include <common.h> #include <command.h> +#ifdef CONFIG_CMD_BOOTEFI #include <efi_loader.h> +#endif #include <mapmem.h> #include <net.h> #include <net/tftp.h> @@ -805,7 +807,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);
Fixes: net/tftp.c:811: undefined reference to `efi_set_bootdev' Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- net/tftp.c | 4 ++++ 1 file changed, 4 insertions(+)