net: Tighten more driver dependencies
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:44:14 +0000 (14:44 -0600)
committerJerome Forissier <jerome.forissier@linaro.org>
Wed, 22 Oct 2025 09:16:09 +0000 (11:16 +0200)
commit772703b77e51f8c1685e7daaa9935dc46b21a30e
tree198de2fd2cc8a2fea5d02796ebe16974033ec67b
parent99707a0baaa85736529a172f515b44598e5a8bc8
net: Tighten more driver dependencies

In this case, the mediatek network drivers cannot build outside of
ARCH_MEDIATEK or ARCH_MTMIPS, and so express this requirement in Kconfig
as well. In the case of DWC_ETH_XGMAC / DWC_ETH_XGMAC_SOCFPGA, the file
controlled by the DWC_ETH_XGMAC option references a socfpga-specific
array defined in the file controlled by DWC_ETH_XGMAC_SOCFPGA. Rework
these options in Kconfig to handle this dependency.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/net/Kconfig
drivers/net/mtk_eth/Kconfig