]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - net/bootp.c
distro: Add efi pxe boot code
[people/ms/u-boot.git] / net / bootp.c
index d718e35b63ec392e1f9d2df0cf1489df0e000d01..85dc524df4fdd8d3e8549b6bab751ab5aa24d0ff 100644 (file)
@@ -413,12 +413,21 @@ static void bootp_timeout_handler(void)
 
 static u8 *add_vci(u8 *e)
 {
+       char *vci = NULL;
+       char *env_vci = getenv("bootp_vci");
+
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_NET_VCI_STRING)
-       put_vci(e, CONFIG_SPL_NET_VCI_STRING);
+       vci = CONFIG_SPL_NET_VCI_STRING;
 #elif defined(CONFIG_BOOTP_VCI_STRING)
-       put_vci(e, CONFIG_BOOTP_VCI_STRING);
+       vci = CONFIG_BOOTP_VCI_STRING;
 #endif
 
+       if (env_vci)
+               vci = env_vci;
+
+       if (vci)
+               put_vci(e, vci);
+
        return e;
 }