mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-20 01:24:39 +08:00
74c97ea3b6
A link time bug that I had fixed before has come back now that another sub-module was added to the enetc driver: ERROR: modpost: "enetc_ierb_register_pf" [drivers/net/ethernet/freescale/enetc/fsl-enetc.ko] undefined! The problem is that the enetc Makefile is not actually used for the ierb module if that is the only built-in driver in there and everything else is a loadable module. Fix it by always entering the directory this time, regardless of which symbols are configured. This should reliably fix the problem and prevent it from coming back another time. Fixes:112463ddbe
("net: dsa: felix: fix link error") Fixes:e7d48e5fbf
("net: enetc: add a mini driver for the Integrated Endpoint Register Block") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
28 lines
728 B
Makefile
28 lines
728 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the Freescale network device drivers.
|
|
#
|
|
|
|
obj-$(CONFIG_FEC) += fec.o
|
|
fec-objs :=fec_main.o fec_ptp.o
|
|
|
|
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx.o
|
|
ifeq ($(CONFIG_FEC_MPC52xx_MDIO),y)
|
|
obj-$(CONFIG_FEC_MPC52xx) += fec_mpc52xx_phy.o
|
|
endif
|
|
obj-$(CONFIG_FS_ENET) += fs_enet/
|
|
obj-$(CONFIG_FSL_PQ_MDIO) += fsl_pq_mdio.o
|
|
obj-$(CONFIG_FSL_XGMAC_MDIO) += xgmac_mdio.o
|
|
obj-$(CONFIG_GIANFAR) += gianfar_driver.o
|
|
gianfar_driver-objs := gianfar.o \
|
|
gianfar_ethtool.o
|
|
obj-$(CONFIG_UCC_GETH) += ucc_geth_driver.o
|
|
ucc_geth_driver-objs := ucc_geth.o ucc_geth_ethtool.o
|
|
|
|
obj-$(CONFIG_FSL_FMAN) += fman/
|
|
obj-$(CONFIG_FSL_DPAA_ETH) += dpaa/
|
|
|
|
obj-$(CONFIG_FSL_DPAA2_ETH) += dpaa2/
|
|
|
|
obj-y += enetc/
|