From: =?UTF-8?q?J=C3=B6rg=20Krause?= Date: Fri, 15 Sep 2017 08:58:32 +0200 Subject: [U-Boot] [PATCH] net/tftp: fix build if CMD_BOOTEFI is not set Message-ID: <20170915065832.11534-1-joerg.krause@embedded.rocks> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Fixes: net/tftp.c:811: undefined reference to `efi_set_bootdev' Signed-off-by: J=C3=B6rg Krause --- 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 @@ =20 #include #include +#ifdef CONFIG_CMD_BOOTEFI #include +#endif #include #include #include @@ -805,7 +807,9 @@ void tftp_start(enum proto_t protocol) printf("Load address: 0x%lx\n", load_addr); puts("Loading: *\b"); tftp_state =3D STATE_SEND_RRQ; +#ifdef CONFIG_CMD_BOOTEFI efi_set_bootdev("Net", "", tftp_filename); +#endif } =20 time_start =3D get_timer(0); --=20 2.14.1