]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: net: U_BOOT_ENV_CALLBACKs should not depend on CMD_NET
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 2 Sep 2019 08:10:34 +0000 (10:10 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Sep 2019 16:37:19 +0000 (11:37 -0500)
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>
include/env_callback.h
include/env_flags.h

index 982c07854d07c8893b30a854d2f6a419169605e6..74da20eec3087143c239134dbac9e9524d1288cd 100644 (file)
@@ -42,7 +42,7 @@
 #define DNS_CALLBACK
 #endif
 
-#ifdef CONFIG_CMD_NET
+#ifdef CONFIG_NET
 #define NET_CALLBACKS \
        "bootfile:bootfile," \
        "ipaddr:ipaddr," \
index e5380f2948456639df47f9b17ab09f9241025bd8..725841a891d7577dc9cd42414552fef69525a460 100644 (file)
@@ -36,7 +36,7 @@ enum env_flags_varaccess {
 #define CONFIG_ENV_FLAGS_LIST_STATIC ""
 #endif
 
-#ifdef CONFIG_CMD_NET
+#ifdef CONFIG_NET
 #ifdef CONFIG_REGEX
 #define ETHADDR_WILDCARD "\\d*"
 #else