xref: /linux/net/dsa/Makefile (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
25a178186SVladimir Oltean
35a178186SVladimir Oltean# the stubs are built-in whenever DSA is built-in or module
45a178186SVladimir Olteanifdef CONFIG_NET_DSA
55a178186SVladimir Olteanobj-y := stubs.o
65a178186SVladimir Olteanendif
75a178186SVladimir Oltean
87df899c3SBen Hutchings# the core
97df899c3SBen Hutchingsobj-$(CONFIG_NET_DSA) += dsa_core.o
1095f510d0SVladimir Olteandsa_core-y += \
116ca80638SFlorian Fainelli	conduit.o \
125cf2c75bSVladimir Oltean	devlink.o \
1347d2ce03SVladimir Oltean	dsa.o \
1495f510d0SVladimir Oltean	netlink.o \
1595f510d0SVladimir Oltean	port.o \
1695f510d0SVladimir Oltean	switch.o \
17bd954b82SVladimir Oltean	tag.o \
189538ebceSVladimir Oltean	tag_8021q.o \
196ca80638SFlorian Fainelli	trace.o \
206ca80638SFlorian Fainelli	user.o
217df899c3SBen Hutchings
2291da11f8SLennert Buytenhek# tagging formats
2348fda74fSOleksij Rempelobj-$(CONFIG_NET_DSA_TAG_AR9331) += tag_ar9331.o
240b9f9dfbSAndrew Lunnobj-$(CONFIG_NET_DSA_TAG_BRCM_COMMON) += tag_brcm.o
25469ee5feSTobias Waldekranzobj-$(CONFIG_NET_DSA_TAG_DSA_COMMON) += tag_dsa.o
260b9f9dfbSAndrew Lunnobj-$(CONFIG_NET_DSA_TAG_GSWIP) += tag_gswip.o
2701ef09caSKurt Kanzenbachobj-$(CONFIG_NET_DSA_TAG_HELLCREEK) += tag_hellcreek.o
28f4073e91SGeorge McCollisterobj-$(CONFIG_NET_DSA_TAG_KSZ) += tag_ksz.o
290b9f9dfbSAndrew Lunnobj-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o
300b9f9dfbSAndrew Lunnobj-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o
31d2be3204SVladimir Olteanobj-$(CONFIG_NET_DSA_TAG_NONE) += tag_none.o
328dce89aaSVladimir Olteanobj-$(CONFIG_NET_DSA_TAG_OCELOT) += tag_ocelot.o
337c83a7c5SVladimir Olteanobj-$(CONFIG_NET_DSA_TAG_OCELOT_8021Q) += tag_ocelot_8021q.o
340b9f9dfbSAndrew Lunnobj-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca.o
359cb8eddaSAlvin Šipragaobj-$(CONFIG_NET_DSA_TAG_RTL4_A) += tag_rtl4_a.o
361521d5adSAlvin Šipragaobj-$(CONFIG_NET_DSA_TAG_RTL8_4) += tag_rtl8_4.o
37a08d6a6dSClément Légerobj-$(CONFIG_NET_DSA_TAG_RZN1_A5PSW) += tag_rzn1_a5psw.o
38227d07a0SVladimir Olteanobj-$(CONFIG_NET_DSA_TAG_SJA1105) += tag_sja1105.o
390b9f9dfbSAndrew Lunnobj-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o
40*6c87e1a4SPawel Dembickiobj-$(CONFIG_NET_DSA_TAG_VSC73XX_8021Q) += tag_vsc73xx_8021q.o
4154a52823SGeorge McCollisterobj-$(CONFIG_NET_DSA_TAG_XRS700X) += tag_xrs700x.o
429538ebceSVladimir Oltean
439538ebceSVladimir Oltean# for tracing framework to find trace.h
449538ebceSVladimir OlteanCFLAGS_trace.o := -I$(src)
45