mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-26 07:17:10 +00:00
env: net: U_BOOT_ENV_CALLBACKs should not depend on CMD_NET
Some environment variables are relevant for networking. For these U_BOOT_ENV_CALLBACKs have been defined. When the corresponding environment variable is updated the callback updates the state of the network sub-system. In the UEFI subsystem we can use the network even if CONFIG_CMD_NET is not defined. Let the usage of the U_BOOT_ENV_CALLBACKs depend on CONFIG_NET and not on CONFIG_CMD_NET. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
5d14ee4e53
commit
cccc05ee3b
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@
|
||||||
#define DNS_CALLBACK
|
#define DNS_CALLBACK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_NET
|
#ifdef CONFIG_NET
|
||||||
#define NET_CALLBACKS \
|
#define NET_CALLBACKS \
|
||||||
"bootfile:bootfile," \
|
"bootfile:bootfile," \
|
||||||
"ipaddr:ipaddr," \
|
"ipaddr:ipaddr," \
|
||||||
|
|
|
@ -36,7 +36,7 @@ enum env_flags_varaccess {
|
||||||
#define CONFIG_ENV_FLAGS_LIST_STATIC ""
|
#define CONFIG_ENV_FLAGS_LIST_STATIC ""
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_NET
|
#ifdef CONFIG_NET
|
||||||
#ifdef CONFIG_REGEX
|
#ifdef CONFIG_REGEX
|
||||||
#define ETHADDR_WILDCARD "\\d*"
|
#define ETHADDR_WILDCARD "\\d*"
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue