-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: dsa: ocelot: build felix.c into a dedicated kernel module
The build system currently complains: scripts/Makefile.build:252: drivers/net/dsa/ocelot/Makefile: felix.o is added to multiple modules: mscc_felix mscc_seville Since felix.c holds the DSA glue layer, create a mscc_felix_dsa_lib.ko. This is similar to how mscc_ocelot_switch_lib.ko holds a library for configuring the hardware. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Acked-by: Colin Foster <colin.foster@in-advantage.com> Link: https://lore.kernel.org/r/20230125145716.271355-1-vladimir.oltean@nxp.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
- Loading branch information
Vladimir Oltean
authored and
Jakub Kicinski
committed
Jan 27, 2023
1 parent
82fe335
commit c800551
Showing
3 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
obj-$(CONFIG_NET_DSA_MSCC_FELIX_DSA_LIB) += mscc_felix_dsa_lib.o | ||
obj-$(CONFIG_NET_DSA_MSCC_FELIX) += mscc_felix.o | ||
obj-$(CONFIG_NET_DSA_MSCC_SEVILLE) += mscc_seville.o | ||
|
||
mscc_felix-objs := \ | ||
felix.o \ | ||
felix_vsc9959.o | ||
|
||
mscc_seville-objs := \ | ||
felix.o \ | ||
seville_vsc9953.o | ||
mscc_felix_dsa_lib-objs := felix.o | ||
mscc_felix-objs := felix_vsc9959.o | ||
mscc_seville-objs := seville_vsc9953.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters