blob: 209377aeb262449e34763e601d6565aa957f7b25 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenked9a2d32002-02-24 23:28:19 +00002#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2000-2006
wdenked9a2d32002-02-24 23:28:19 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenked9a2d32002-02-24 23:28:19 +00005
Masahiro Yamada6825a952014-02-04 17:24:28 +09006#ccflags-y += -DDEBUG
wdenked9a2d32002-02-24 23:28:19 +00007
Jerome Forissier8cb33032024-10-16 12:03:59 +02008ifeq ($(CONFIG_NET),y)
9
Joe Hershberger5f967c02018-04-13 15:26:38 -050010obj-$(CONFIG_NET) += arp.o
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -050011obj-$(CONFIG_CMD_BOOTP) += bootp.o
Masahiro Yamada9cc11802013-10-17 17:35:00 +090012obj-$(CONFIG_CMD_CDP) += cdp.o
13obj-$(CONFIG_CMD_DNS) += dns.o
Claudiu Manoilfc054d52021-01-25 14:23:53 +020014obj-$(CONFIG_DM_DSA) += dsa-uclass.o
Masahiro Yamada9cc11802013-10-17 17:35:00 +090015obj-$(CONFIG_CMD_LINK_LOCAL) += link_local.o
Viacheslav Mitrofanovc6610e12022-12-02 12:18:01 +030016obj-$(CONFIG_IPV6) += ndisc.o
Simon Glassc46760d2024-09-29 19:49:53 -060017obj-$(CONFIG_$(XPL_)DM_ETH) += net.o
Viacheslav Mitrofanov3cc04a32022-12-02 12:17:59 +030018obj-$(CONFIG_IPV6) += net6.o
Masahiro Yamada9cc11802013-10-17 17:35:00 +090019obj-$(CONFIG_CMD_NFS) += nfs.o
20obj-$(CONFIG_CMD_PING) += ping.o
Viacheslav Mitrofanoveeb0a2c2022-12-02 12:18:08 +030021obj-$(CONFIG_CMD_PING6) += ping6.o
Sean Edmonda0245812023-04-11 10:48:46 -070022obj-$(CONFIG_CMD_DHCP6) += dhcpv6.o
Ramon Fried3eaac632019-07-18 21:43:30 +030023obj-$(CONFIG_CMD_PCAP) += pcap.o
Masahiro Yamada9cc11802013-10-17 17:35:00 +090024obj-$(CONFIG_CMD_RARP) += rarp.o
25obj-$(CONFIG_CMD_SNTP) += sntp.o
Joe Hershbergerd7a45ea2018-04-13 15:26:30 -050026obj-$(CONFIG_CMD_TFTPBOOT) += tftp.o
Simon Glass5c10c8b2024-09-29 19:49:54 -060027obj-$(CONFIG_$(PHASE_)UDP_FUNCTION_FASTBOOT) += fastboot_udp.o
28obj-$(CONFIG_$(PHASE_)TCP_FUNCTION_FASTBOOT) += fastboot_tcp.o
Lothar Feltend8970da2018-06-22 22:29:54 +020029obj-$(CONFIG_CMD_WOL) += wol.o
Philippe Reynesb43ea1b2020-09-18 14:13:00 +020030obj-$(CONFIG_PROT_UDP) += udp.o
Ying-Chun Liu (PaulLiu)a3bf1932022-11-08 14:17:28 +080031obj-$(CONFIG_PROT_TCP) += tcp.o
Ying-Chun Liu (PaulLiu)cfbae482022-11-08 14:17:29 +080032obj-$(CONFIG_CMD_WGET) += wget.o
Tom Rini94443872017-05-10 15:26:06 -040033
34# Disable this warning as it is triggered by:
35# sprintf(buf, index ? "foo%d" : "foo", index)
36# and this is intentional usage.
37CFLAGS_eth_common.o += -Wno-format-extra-args
Jerome Forissier8cb33032024-10-16 12:03:59 +020038
39endif
Jerome Forissier1d5d2922024-10-16 12:04:00 +020040
Jerome Forissier98ad1452024-10-16 12:04:03 +020041ifeq ($(filter y,$(CONFIG_NET) $(CONFIG_NET_LWIP)),y)
42obj-$(CONFIG_$(XPL_)DM_ETH) += eth-uclass.o
43obj-$(CONFIG_$(PHASE_)BOOTDEV_ETH) += eth_bootdev.o
44obj-$(CONFIG_DM_MDIO) += mdio-uclass.o
45obj-$(CONFIG_DM_MDIO_MUX) += mdio-mux-uclass.o
46obj-$(CONFIG_$(XPL_)DM_ETH) += eth_common.o
Jerome Forissier1d5d2922024-10-16 12:04:00 +020047obj-y += net-common.o
Jerome Forissier98ad1452024-10-16 12:04:03 +020048endif
49
50obj-$(CONFIG_NET_LWIP) += lwip/