1# SPDX-License-Identifier: GPL-2.0 2 3# the stubs are built-in whenever DSA is built-in or module 4ifdef CONFIG_NET_DSA 5obj-y := stubs.o 6endif 7 8# the core 9obj-$(CONFIG_NET_DSA) += dsa_core.o 10dsa_core-y += \ 11 conduit.o \ 12 devlink.o \ 13 dsa.o \ 14 netlink.o \ 15 port.o \ 16 switch.o \ 17 tag.o \ 18 tag_8021q.o \ 19 trace.o \ 20 user.o 21 22# tagging formats 23obj-$(CONFIG_NET_DSA_TAG_AR9331) += tag_ar9331.o 24obj-$(CONFIG_NET_DSA_TAG_BRCM_COMMON) += tag_brcm.o 25obj-$(CONFIG_NET_DSA_TAG_DSA_COMMON) += tag_dsa.o 26obj-$(CONFIG_NET_DSA_TAG_GSWIP) += tag_gswip.o 27obj-$(CONFIG_NET_DSA_TAG_HELLCREEK) += tag_hellcreek.o 28obj-$(CONFIG_NET_DSA_TAG_KSZ) += tag_ksz.o 29obj-$(CONFIG_NET_DSA_TAG_LAN9303) += tag_lan9303.o 30obj-$(CONFIG_NET_DSA_TAG_MTK) += tag_mtk.o 31obj-$(CONFIG_NET_DSA_TAG_NONE) += tag_none.o 32obj-$(CONFIG_NET_DSA_TAG_OCELOT) += tag_ocelot.o 33obj-$(CONFIG_NET_DSA_TAG_OCELOT_8021Q) += tag_ocelot_8021q.o 34obj-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca.o 35obj-$(CONFIG_NET_DSA_TAG_RTL4_A) += tag_rtl4_a.o 36obj-$(CONFIG_NET_DSA_TAG_RTL8_4) += tag_rtl8_4.o 37obj-$(CONFIG_NET_DSA_TAG_RZN1_A5PSW) += tag_rzn1_a5psw.o 38obj-$(CONFIG_NET_DSA_TAG_SJA1105) += tag_sja1105.o 39obj-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o 40obj-$(CONFIG_NET_DSA_TAG_XRS700X) += tag_xrs700x.o 41 42# for tracing framework to find trace.h 43CFLAGS_trace.o := -I$(src) 44