xref: /openbmc/linux/net/Makefile (revision 5d331b7f)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux networking.
4#
5# 2 Sep 2000, Christoph Hellwig <hch@infradead.org>
6# Rewritten to use lists instead of if-statements.
7#
8
9obj-$(CONFIG_NET)		:= socket.o core/
10
11tmp-$(CONFIG_COMPAT) 		:= compat.o
12obj-$(CONFIG_NET)		+= $(tmp-y)
13
14# LLC has to be linked before the files in net/802/
15obj-$(CONFIG_LLC)		+= llc/
16obj-$(CONFIG_NET)		+= ethernet/ 802/ sched/ netlink/ bpf/
17obj-$(CONFIG_NETFILTER)		+= netfilter/
18obj-$(CONFIG_INET)		+= ipv4/
19obj-$(CONFIG_TLS)		+= tls/
20obj-$(CONFIG_XFRM)		+= xfrm/
21obj-$(CONFIG_UNIX)		+= unix/
22obj-$(CONFIG_NET)		+= ipv6/
23obj-$(CONFIG_BPFILTER)		+= bpfilter/
24obj-$(CONFIG_PACKET)		+= packet/
25obj-$(CONFIG_NET_KEY)		+= key/
26obj-$(CONFIG_BRIDGE)		+= bridge/
27obj-$(CONFIG_NET_DSA)		+= dsa/
28obj-$(CONFIG_ATALK)		+= appletalk/
29obj-$(CONFIG_X25)		+= x25/
30obj-$(CONFIG_LAPB)		+= lapb/
31obj-$(CONFIG_NETROM)		+= netrom/
32obj-$(CONFIG_ROSE)		+= rose/
33obj-$(CONFIG_AX25)		+= ax25/
34obj-$(CONFIG_CAN)		+= can/
35obj-$(CONFIG_BT)		+= bluetooth/
36obj-$(CONFIG_SUNRPC)		+= sunrpc/
37obj-$(CONFIG_AF_RXRPC)		+= rxrpc/
38obj-$(CONFIG_AF_KCM)		+= kcm/
39obj-$(CONFIG_STREAM_PARSER)	+= strparser/
40obj-$(CONFIG_ATM)		+= atm/
41obj-$(CONFIG_L2TP)		+= l2tp/
42obj-$(CONFIG_DECNET)		+= decnet/
43obj-$(CONFIG_PHONET)		+= phonet/
44ifneq ($(CONFIG_VLAN_8021Q),)
45obj-y				+= 8021q/
46endif
47obj-$(CONFIG_IP_DCCP)		+= dccp/
48obj-$(CONFIG_IP_SCTP)		+= sctp/
49obj-$(CONFIG_RDS)		+= rds/
50obj-$(CONFIG_WIRELESS)		+= wireless/
51obj-$(CONFIG_MAC80211)		+= mac80211/
52obj-$(CONFIG_TIPC)		+= tipc/
53obj-$(CONFIG_NETLABEL)		+= netlabel/
54obj-$(CONFIG_IUCV)		+= iucv/
55obj-$(CONFIG_SMC)		+= smc/
56obj-$(CONFIG_RFKILL)		+= rfkill/
57obj-$(CONFIG_NET_9P)		+= 9p/
58obj-$(CONFIG_CAIF)		+= caif/
59ifneq ($(CONFIG_DCB),)
60obj-y				+= dcb/
61endif
62obj-$(CONFIG_6LOWPAN)		+= 6lowpan/
63obj-$(CONFIG_IEEE802154)	+= ieee802154/
64obj-$(CONFIG_MAC802154)		+= mac802154/
65
66ifeq ($(CONFIG_NET),y)
67obj-$(CONFIG_SYSCTL)		+= sysctl_net.o
68endif
69obj-$(CONFIG_WIMAX)		+= wimax/
70obj-$(CONFIG_DNS_RESOLVER)	+= dns_resolver/
71obj-$(CONFIG_CEPH_LIB)		+= ceph/
72obj-$(CONFIG_BATMAN_ADV)	+= batman-adv/
73obj-$(CONFIG_NFC)		+= nfc/
74obj-$(CONFIG_PSAMPLE)		+= psample/
75obj-$(CONFIG_NET_IFE)		+= ife/
76obj-$(CONFIG_OPENVSWITCH)	+= openvswitch/
77obj-$(CONFIG_VSOCKETS)	+= vmw_vsock/
78obj-$(CONFIG_MPLS)		+= mpls/
79obj-$(CONFIG_NET_NSH)		+= nsh/
80obj-$(CONFIG_HSR)		+= hsr/
81ifneq ($(CONFIG_NET_SWITCHDEV),)
82obj-y				+= switchdev/
83endif
84ifneq ($(CONFIG_NET_L3_MASTER_DEV),)
85obj-y				+= l3mdev/
86endif
87obj-$(CONFIG_QRTR)		+= qrtr/
88obj-$(CONFIG_NET_NCSI)		+= ncsi/
89obj-$(CONFIG_XDP_SOCKETS)	+= xdp/
90