net: Move network rules to drivers/net
The code under drivers/net is related to ethernet networking drivers, in some fashion or another. Drop these from the top-level Makefile and also move the phy rule into drivers/net/Makefile which is where it belongs. Make the new rule for drivers/net check for the build-stage relevant ETH symbol. Fix up some Kconfig dependencies while we're here to mirror how the Makefile logic now works. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Introduce ETH, Kconfig dependency changes, am43xx fix] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -18,6 +18,7 @@ obj-$(CONFIG_$(SPL_TPL_)LED) += led/
|
||||
obj-$(CONFIG_$(SPL_TPL_)MMC) += mmc/
|
||||
obj-y += mtd/
|
||||
obj-$(CONFIG_$(SPL_)MULTIPLEXER) += mux/
|
||||
obj-$(CONFIG_$(SPL_TPL_)ETH) += net/
|
||||
obj-$(CONFIG_$(SPL_TPL_)PCH) += pch/
|
||||
obj-$(CONFIG_$(SPL_TPL_)PCI) += pci/
|
||||
obj-$(CONFIG_$(SPL_TPL_)PHY) += phy/
|
||||
@@ -48,9 +49,6 @@ obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
|
||||
obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
|
||||
obj-$(CONFIG_IMX8ULP_DRAM) += ddr/imx/imx8ulp/
|
||||
obj-$(CONFIG_SPL_DM_RESET) += reset/
|
||||
obj-$(CONFIG_SPL_ETH) += net/
|
||||
obj-$(CONFIG_SPL_ETH) += net/phy/
|
||||
obj-$(CONFIG_SPL_USB_ETHER) += net/phy/
|
||||
obj-$(CONFIG_SPL_MUSB_NEW) += usb/musb-new/
|
||||
obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/
|
||||
obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
|
||||
|
||||
@@ -2,6 +2,9 @@ source "drivers/net/phy/Kconfig"
|
||||
source "drivers/net/pfe_eth/Kconfig"
|
||||
source "drivers/net/fsl-mc/Kconfig"
|
||||
|
||||
config ETH
|
||||
def_bool y
|
||||
|
||||
config DM_ETH
|
||||
bool "Enable Driver Model for Ethernet drivers"
|
||||
depends on DM
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
# (C) Copyright 2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
|
||||
obj-y += phy/
|
||||
|
||||
obj-$(CONFIG_ALTERA_TSE) += altera_tse.o
|
||||
obj-$(CONFIG_AG7XXX) += ag7xxx.o
|
||||
obj-$(CONFIG_ARMADA100_FEC) += armada100_fec.o
|
||||
@@ -33,6 +35,7 @@ obj-$(CONFIG_SUN8I_EMAC) += sun8i_emac.o
|
||||
obj-$(CONFIG_EP93XX) += ep93xx_eth.o
|
||||
obj-$(CONFIG_ETHOC) += ethoc.o
|
||||
obj-$(CONFIG_FEC_MXC) += fec_mxc.o
|
||||
obj-$(CONFIG_FMAN_ENET) += fm/
|
||||
obj-$(CONFIG_FSLDMAFEC) += fsl_mcdmafec.o mcfmii.o
|
||||
obj-$(CONFIG_FTGMAC100) += ftgmac100.o
|
||||
obj-$(CONFIG_FTMAC110) += ftmac110.o
|
||||
|
||||
Reference in New Issue
Block a user