diff options
author | Simon Glass <sjg@chromium.org> | 2021-12-18 11:27:48 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-21 14:01:34 -0500 |
commit | 3df6cd4d63678065ce82637d995ed3170e9e56cd (patch) | |
tree | e63d441b26732f0acf9294aa9421587105321e9f /net/Kconfig | |
parent | 2d7a463e82daeba4f6a7fb59bac0fe94d6f6d3a2 (diff) |
Convert CONFIG_KEEP_SERVERADDR to Kconfig
This converts the following to Kconfig:
CONFIG_KEEP_SERVERADDR
Drop the preprocessor usage also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/Kconfig')
-rw-r--r-- | net/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/Kconfig b/net/Kconfig index cabe93c6bd..8e9579afb2 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -99,4 +99,13 @@ config SERVERIP_FROM_PROXYDHCP_DELAY_MS receiving response from main DHCP server. Has no effect if SERVERIP_FROM_PROXYDHCP is false. +config KEEP_SERVERADDR + bool "Write the server's MAC address to 'serveraddr'" + default y if SANDBOX + help + Keeps the server's MAC address, in the env 'serveraddr' + for passing to bootargs (like Linux's netconsole option). If this is + enabled, when an ARP reply is received, the server's IP address is + written there. + endif # if NET |