zephyr/drivers/ethernet/Kconfig.e1000
Ulf Magnusson 48753144bd kconfig: ethernet: Remove duplicated dependencies
Some of these are from 'source'ing a file within a menu that has a
'depends on NET_L2_ETHERNET' (in drivers/ethernet/Kconfig) and then
adding another 'depends on NET_L2_ETHERNET' within it.

Similarly, subsys/net/l2/ethernet/Kconfig sources files within an
'if NET_L2_ETHERNET'.

'if FOO' is just shorthand for adding 'depends on FOO' to each item
within the 'if'. Dependencies on menus work similarly. There are no
"conditional includes" in Kconfig, so 'if FOO' has no special meaning
around a source. Conditional includes wouldn't be possible, because an
if condition could include (directly or indirectly) forward references
to symbols not defined yet.

Tip: When adding a symbol, check its dependencies in the menuconfig
('ninja menuconfig', then / to jump to the symbol). The menuconfig also
shows how the file with the symbol got included, so if you see
duplicated dependencies, it's easy to hunt down where they come from.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-03-08 07:23:02 -05:00

23 lines
523 B
Plaintext

# Kconfig - Intel(R) PRO/1000 Gigabit Ethernet driver configuration options
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig ETH_E1000
bool "Intel(R) PRO/1000 Gigabit Ethernet driver"
depends on PCI_ENUMERATION
help
Enable Intel(R) PRO/1000 Gigabit Ethernet driver.
# Hidden option
config ETH_NIC_MODEL
string
default "e1000"
depends on ETH_E1000
help
Tells what Qemu network model to use. This value is given as
a parameter to -nic qemu command line option.