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)
commitcccc05ee3b9f575b567437d4146af0dee40c68ba
treefcc4f6c6dea33d4d17f7ffd10a56b30f979e10d9
parent5d14ee4e53a81055d34ba280cb8fd90330f22a96
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>
include/env_callback.h
include/env_flags.h