]> git.sur5r.net Git - u-boot/blobdiff - cmd/Kconfig
net: Add option to prefer bootp/dhcp serverip
[u-boot] / cmd / Kconfig
index bbf9fc9113053bc74bc59fffef09292035a8df76..aec209006dbfb57c204d0caeb1ca87f0bcaf8316 100644 (file)
@@ -1121,6 +1121,16 @@ config BOOTP_HOSTNAME
        help
          The name may or may not be qualified with the local domain name.
 
+config BOOTP_PREFER_SERVERIP
+       bool "serverip variable takes precedent over DHCP server IP."
+       depends on CMD_BOOTP
+       help
+         By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
+
+         With this option enabled, the 'serverip' variable in the environment
+         takes precedence over DHCP server IP and will only be set by the DHCP
+         server if not already set in the environment.
+
 config BOOTP_SUBNETMASK
        bool "Request & store 'netmask' from BOOTP/DHCP server"
        default y