Re: [PATCH net-next v3 4/8] net: dsa: realtek: merge common and interface modules into realtek-dsa

Linus Walleij
2024-01-09T12:49:29Z

On Mon, Jan 8, 2024 at 3:11 PM Vladimir Oltean <olteanv@gmail.com> wrote:
> On Fri, Dec 22, 2023 at 09:46:32PM -0300, Luiz Angelo Daros de Luca wrote:

> > +realtek-dsa-objs-y := realtek-common.o
> > +realtek-dsa-objs-$(CONFIG_NET_DSA_REALTEK_MDIO) += realtek-mdio.o
> > +realtek-dsa-objs-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek-smi.o
> > +realtek-dsa-objs := $(realtek-dsa-objs-y)
> > obj-$(CONFIG_NET_DSA_REALTEK_RTL8366RB) += rtl8366.o
> > rtl8366-objs := rtl8366-core.o rtl8366rb.o
> > obj-$(CONFIG_NET_DSA_REALTEK_RTL8365MB) += rtl8365mb.o
>
> Does "realtek-dsa-objs-y" have any particular meaning in the Kbuild
> system, or is it just a random variable name?

It's a Makefile naming convention, meaning this is always enabled.

linux$ git grep 'objs\-y' | wc -l
52

Yours,
Linus Walleij